mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
Docs: don't render files in includes/, they're for embedding only (GH-103313)
(cherry picked from commit 280bd536b5
)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
4a05392adb
commit
a836d79111
1 changed files with 3 additions and 1 deletions
|
@ -63,8 +63,10 @@ highlight_language = 'python3'
|
||||||
# Minimum version of sphinx required
|
# Minimum version of sphinx required
|
||||||
needs_sphinx = '3.2'
|
needs_sphinx = '3.2'
|
||||||
|
|
||||||
|
# Ignore any .rst files in the includes/ directory;
|
||||||
|
# they're embedded in pages but not rendered individually.
|
||||||
# Ignore any .rst files in the venv/ directory.
|
# Ignore any .rst files in the venv/ directory.
|
||||||
exclude_patterns = ['venv/*', 'README.rst']
|
exclude_patterns = ['includes/*.rst', 'venv/*', 'README.rst']
|
||||||
venvdir = os.getenv('VENVDIR')
|
venvdir = os.getenv('VENVDIR')
|
||||||
if venvdir is not None:
|
if venvdir is not None:
|
||||||
exclude_patterns.append(venvdir + '/*')
|
exclude_patterns.append(venvdir + '/*')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue