Shared Wagtail extensions for the Freedom of the Press Foundation Wagtail sites.
fpfwagtailcommon.curlify— a Draftail rich-text feature (curlify) that converts straight quotes to curly quotes.
INSTALLED_APPS = [
# ...
"fpfwagtailcommon.curlify",
]The curlify app registers a curlify Draftail feature and appends it to the
default rich-text features. Enable it explicitly in a feature list, e.g.:
WAGTAILADMIN_RICH_TEXT_EDITORS = {
"default": {
"WIDGET": "wagtail.admin.rich_text.DraftailRichTextArea",
"OPTIONS": {"features": ["bold", "italic", "link", "curlify"]},
},
}This library is automatically versioned by
poetry-dynamic-versioning.
To make a new release that can be consumed by downstream projects, create a
new GitHub Release.
Ensure the tag is PEP 440 formatted,
v<MAJOR>.<MINOR>.<PATCH>, e.g. v1.2.3. Optional prerelease segements are also
supported, e.g. v1.2.3rc1.
Once the release is created, the publish.yml workflow will build and attach a wheel file to the release. Use this wheel as a dependency in downstream projects.