File tree 3 files changed +17
-5
lines changed
3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change
1
+ The Sphinx setup was updated to avoid showing the empty
2
+ changelog draft section in the tagged release documentation
3
+ builds on Read The Docs -- by :user: `webknjaz `.
Original file line number Diff line number Diff line change 4
4
Changelog
5
5
=========
6
6
7
- To be included in v\ |release | (if present)
8
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7
+ .. only :: not is_release
9
8
10
- .. towncrier-draft-entries :: |release| [UNRELEASED DRAFT]
9
+ To be included in v\ |release | (if present)
10
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11
11
12
- Released versions
13
- ^^^^^^^^^^^^^^^^^
12
+ .. towncrier-draft-entries :: |release| [UNRELEASED DRAFT]
13
+
14
+ Released versions
15
+ ^^^^^^^^^^^^^^^^^
14
16
15
17
.. include :: ../CHANGES.rst
18
+ :start-after: .. towncrier release notes start
16
19
17
20
.. include :: ../HISTORY.rst
Original file line number Diff line number Diff line change 17
17
from pathlib import Path
18
18
19
19
PROJECT_ROOT_DIR = Path (__file__ ).parents [1 ].resolve ()
20
+ IS_RELEASE_ON_RTD = (
21
+ os .getenv ("READTHEDOCS" , "False" ) == "True"
22
+ and os .environ ["READTHEDOCS_VERSION_TYPE" ] == "tag"
23
+ )
24
+ if IS_RELEASE_ON_RTD :
25
+ tags .add ("is_release" )
20
26
21
27
_docs_path = os .path .dirname (__file__ )
22
28
_version_path = os .path .abspath (
You can’t perform that action at this time.
0 commit comments