Skip to content

Repository files navigation

fpf-wagtail-common

Shared Wagtail extensions for the Freedom of the Press Foundation Wagtail sites.

Curlify

Installation

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"]},
    },
}

Releases and using downstream

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.

About

Common modules shared between FPF's Wagtail sites (freedom.press, pressfreedomtracker.us, SecureDrop.org)

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages