summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-04-11 06:17:34 (GMT)
committerGitHub <noreply@github.com>2023-04-11 06:17:34 (GMT)
commit280bd536b58d3e844047cd132159cf9f6cb66708 (patch)
treef22eaf5b2fc450d2a11b4bc0d3e1c3511d9f4814
parent75b6ab80da95f7d731b0d69b8ee8adb095b24d27 (diff)
downloadcpython-280bd536b58d3e844047cd132159cf9f6cb66708.zip
cpython-280bd536b58d3e844047cd132159cf9f6cb66708.tar.gz
cpython-280bd536b58d3e844047cd132159cf9f6cb66708.tar.bz2
Docs: don't render files in includes/, they're for embedding only (#103313)
-rw-r--r--Doc/conf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index 29fb63c..e99b801 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -68,8 +68,10 @@ highlight_language = 'python3'
# 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 + '/*')