File tree 4 files changed +13
-0
lines changed
4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
import glob
13
13
import os
14
+ import pathlib
14
15
import re
15
16
import sys
16
17
34
35
'sphinx.ext.intersphinx' ,
35
36
# third-party:
36
37
'sphinx_inline_tabs' ,
38
+ 'sphinxcontrib.towncrier' ,
37
39
# in-tree:
38
40
'docs_feedback_sphinxext' ,
39
41
'pip_sphinxext' ,
@@ -314,3 +316,10 @@ def to_document_name(path, base_dir):
314
316
'What content was useful?' ,
315
317
'What content was not useful?' ,
316
318
)
319
+
320
+ # -- Options for towncrier_draft extension -----------------------------------
321
+
322
+ towncrier_draft_autoversion_mode = 'draft' # or: 'sphinx-release', 'sphinx-version'
323
+ towncrier_draft_include_empty = True
324
+ towncrier_draft_working_directory = pathlib .Path (docs_dir ).parent
325
+ # Not yet supported: towncrier_draft_config_path = 'pyproject.toml' # relative to cwd
Original file line number Diff line number Diff line change @@ -7,4 +7,6 @@ Changelog
7
7
Major and minor releases of pip also include changes listed within
8
8
prior beta releases.
9
9
10
+ .. towncrier-draft-entries :: |release|, unreleased as on
11
+
10
12
.. include :: ../../NEWS.rst
Original file line number Diff line number Diff line change
1
+ Render the unreleased pip version change notes on the news page in docs.
Original file line number Diff line number Diff line change 1
1
sphinx == 3.2.1
2
2
furo
3
3
sphinx-inline-tabs
4
+ sphinxcontrib-towncrier
4
5
5
6
# `docs.pipext` uses pip's internals to generate documentation. So, we install
6
7
# the current directory to make it work.
You can’t perform that action at this time.
0 commit comments