You can install the package from PyPI using:
pip install -U mkdocs-towncier
and then enabling it in your mkdocs.yml
file:
plugins:
- towncrier
Using mkdocs-towncrier is as easy as adding a directive to wherever you want the draft changelog to be added:
# Changelog
<!--- You can even specify the header value! (defaults to "Unreleased") -->
:: towncrier-draft Unreleased changes
--8<-- "CHANGELOG.md"
And that's it! Any draft fragment files will be picked up and automatically added to your pages.
This project is heavily inspired in the wonderful sphinx-contrib/sphinxcontrib-towncrier!