Skip to content

About

Static resources for Plone

Resources

Code of conduct

Contributing

Security policy

Stars

8 stars

Watchers

165 watching

Forks

Repository files navigation

plone.staticresources

This add-on contains Fonts, Icons and JavaScript used by Plone Classic-UI.

Version Information

Each release line of this package delivers one Mockup release line to one Plone version:

  • Version 3.1.x -> Plone 6.3 (Mockup 5.7.x)
  • Version 3.0.x -> Plone 6.2 (Mockup 5.6.x)
  • Version 2.3.x -> Plone 6.1 (Mockup 5.4.x)
  • Version 2.1.x -> Plone 6.0 (Mockup 5.1.x)
  • Version 1.x -> Plone 5.2

Note on Version 2.x:

Since version 2.2.x TinyMCE got updated to version 6. Version 2.2.x is also compatible with Plone>=6.0.7.

Note on Version 3.x:

Version 3.0.0 switched to a PEP 420 native namespace package and requires Plone>=6.2 and Python 3.10 or later.

Prerequisites

The resource update targets below work on Linux and macOS. Install the following tools and make sure they are available on your PATH:

  • curl
  • git
  • jq
  • make
  • Python 3 with venv support (on Debian/Ubuntu install python3-venv).
  • tar

Run make check-dependencies to verify them; the update targets run this check automatically and list any missing commands with installation hints.

How to upgrade the resources in this package

Run:

make update-mockup
make update-bootstrap-icons
make update-country-flags

This downloads and installs the latest versions of these packages. The commits and changelog entries are automatically made.

Mockup (@plone/mockup) and Bootstrap Icons (bootstrap-icons) are downloaded from the npm registry. make update-mockup installs the version with the npm dist-tag latest. Country flags are downloaded from the main branch of the GitHub repository, because the npm package is outdated. None of the targets use the rate limited GitHub API.

Run make update-mockup-prerelease to install the newest Mockup pre-release: the highest version among the npm dist-tags alpha, beta and rc, which is higher than latest. Versions are compared by semver, so stale pre-release tags of older release lines are ignored. An explicit MOCKUP_VERSION overrides automatic selection for either target.

Run make -k all to update all resources and continue with the other updates if one fails. The command still reports failure if any update fails.

The update targets invoke POSIX shell scripts in scripts/ from the repository root.

The versions of the installed resources are recorded in resource-versions.json and updated together with the resources. Run make versions to show them.

See the Makefile for more information.

Then submit a Pull Request and run the tests on Jenkins.

Note

If you want to fix something or add functionality please go to the Mockup repository and follow the instructions there. This package is only to deliver the generated bundles.

License

The project is licensed under the GPLv2.

About

Static resources for Plone

Resources

Code of conduct

Contributing

Security policy

Stars

8 stars

Watchers

165 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages