mirror of https://github.com/python/cpython.git
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
|
@ -63,8 +63,10 @@
|
|||
# Minimum version of sphinx required
|
||||
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.
|
||||
exclude_patterns = ['venv/*', 'README.rst']
|
||||
exclude_patterns = ['includes/*.rst', 'venv/*', 'README.rst']
|
||||
venvdir = os.getenv('VENVDIR')
|
||||
if venvdir is not None:
|
||||
exclude_patterns.append(venvdir + '/*')
|
||||
|
|
Loading…
Reference in New Issue