Skip to content

Commit 99cabc2

Browse files
authored
Merge pull request #2650 from webknjaz/docs/towncrier-upgrade
Show not-yet-released change notes in Sphinx docs
2 parents 317ad2c + fef727f commit 99cabc2

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

changelog.d/2650.misc.rst

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Updated the docs build tooling to support the latest version of
2+
Towncrier and show the previews of not-yet-released setuptools versions
3+
in the changelog -- :user:`webknjaz`

docs/conf.py

+5
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,8 @@
143143
python=('https://docs.python.org/3', None),
144144
python2=('https://docs.python.org/2', None),
145145
)
146+
147+
# Add support for the unreleased "next-version" change notes
148+
extensions += ['sphinxcontrib.towncrier']
149+
# Extension needs a path from here to the towncrier config.
150+
towncrier_draft_working_directory = '..'

docs/history.rst

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
History
66
*******
77

8+
.. towncrier-draft-entries:: DRAFT, unreleased as on |today|
9+
810
.. include:: ../CHANGES (links).rst
911

1012
Credits

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ docs =
7575
# local
7676
pygments-github-lexers==0.0.5
7777
sphinx-inline-tabs
78+
sphinxcontrib-towncrier
7879

7980
ssl =
8081
wincertstore==0.2; sys_platform=='win32'

0 commit comments

Comments
 (0)