Skip to content

Commit

Permalink
Merge pull request #2650 from webknjaz/docs/towncrier-upgrade
Browse files Browse the repository at this point in the history
Show not-yet-released change notes in Sphinx docs
  • Loading branch information
jaraco committed May 9, 2021
2 parents 317ad2c + fef727f commit 99cabc2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.d/2650.misc.rst
@@ -0,0 +1,3 @@
Updated the docs build tooling to support the latest version of
Towncrier and show the previews of not-yet-released setuptools versions
in the changelog -- :user:`webknjaz`
5 changes: 5 additions & 0 deletions docs/conf.py
Expand Up @@ -143,3 +143,8 @@
python=('https://docs.python.org/3', None),
python2=('https://docs.python.org/2', None),
)

# Add support for the unreleased "next-version" change notes
extensions += ['sphinxcontrib.towncrier']
# Extension needs a path from here to the towncrier config.
towncrier_draft_working_directory = '..'
2 changes: 2 additions & 0 deletions docs/history.rst
Expand Up @@ -5,6 +5,8 @@
History
*******

.. towncrier-draft-entries:: DRAFT, unreleased as on |today|

.. include:: ../CHANGES (links).rst

Credits
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -75,6 +75,7 @@ docs =
# local
pygments-github-lexers==0.0.5
sphinx-inline-tabs
sphinxcontrib-towncrier

ssl =
wincertstore==0.2; sys_platform=='win32'
Expand Down

0 comments on commit 99cabc2

Please sign in to comment.