Merge pull request #9172 from webknjaz/docs/unreleased-change-fragments-preview

Add a preview for the "next release" change notes
This commit is contained in:
Pradyun Gedam 2020-12-26 10:50:10 +00:00 committed by GitHub
commit c383ec3b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 0 deletions

View File

@ -11,6 +11,7 @@
import glob
import os
import pathlib
import re
import sys
@ -34,6 +35,7 @@ extensions = [
'sphinx.ext.intersphinx',
# third-party:
'sphinx_inline_tabs',
'sphinxcontrib.towncrier',
# in-tree:
'docs_feedback_sphinxext',
'pip_sphinxext',
@ -314,3 +316,10 @@ docs_feedback_questions_list = (
'What content was useful?',
'What content was not useful?',
)
# -- Options for towncrier_draft extension -----------------------------------
towncrier_draft_autoversion_mode = 'draft' # or: 'sphinx-release', 'sphinx-version'
towncrier_draft_include_empty = True
towncrier_draft_working_directory = pathlib.Path(docs_dir).parent
# Not yet supported: towncrier_draft_config_path = 'pyproject.toml' # relative to cwd

View File

@ -7,4 +7,6 @@ Changelog
Major and minor releases of pip also include changes listed within
prior beta releases.
.. towncrier-draft-entries:: |release|, unreleased as on
.. include:: ../../NEWS.rst

1
news/9172.doc.rst Normal file
View File

@ -0,0 +1 @@
Render the unreleased pip version change notes on the news page in docs.

View File

@ -1,6 +1,7 @@
sphinx == 3.2.1
furo
sphinx-inline-tabs
sphinxcontrib-towncrier
# `docs.pipext` uses pip's internals to generate documentation. So, we install
# the current directory to make it work.