All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project attempts to adhere to Semantic Versioning.
- Fixed a bug where the icons were registered incorrectly and thus not able to be rendered by Django's
render_to_string
function. Reported by @seb-b in #58.
- Fixed a bug where the icons being registered by the wagtail hook were not being found.
- Now using
django-twc-package
as as package template.
- Now using
nox
for testing. - Build script has been moved from inside the package to the root of the repository.
- Added link to MIT license in all SVG files and split the license and Refactoring UI Inc. copyright information into separate lines.
- Icon registration has been simplified to just getting a list of the icon files under the
heroicons
template directory. - Application template directory containing icons has been renamed to match the package name.
- Dropped support for Python 3.7.
- Removed all build scripts and related methods from package.
- Removed
icons.py
and associated tests.
- Fixed a TypeError when attempting to use the package; the
Heroicon
dataclass was adding aPath
object to the list of icons in theregister_icons
Wagtail hook instead of a string. Reported by @ReijerTheCoder in #40 and fixed in #41.
- Add the MIT license and Refactoring UI Inc. copyright information to all SVG files.
- Refactored the internals of the package to use a
Heroicon
dataclass instead of alist
of icon names.
- Add try/except block for
hooks
import fromwagtail.core
towagtail
to fix a deprecation warning.
Initial release!
- Build script:
- Download Heroicons from NPM and copy to
templates
folder - Edit SVG files to add correct
id
attribute - Edit and build the icon registry in
icons.py
- Download Heroicons from NPM and copy to
- Initial documentation