[Python-checkins] Docs: don't render files in includes/, they're for embedding only (#103313)

hugovk webhook-mailer at python.org
Tue Apr 11 02:17:42 EDT 2023


https://github.com/python/cpython/commit/280bd536b58d3e844047cd132159cf9f6cb66708
commit: 280bd536b58d3e844047cd132159cf9f6cb66708
branch: main
author: Hugo van Kemenade <hugovk at users.noreply.github.com>
committer: hugovk <hugovk at users.noreply.github.com>
date: 2023-04-11T09:17:34+03:00
summary:

Docs: don't render files in includes/, they're for embedding only (#103313)

files:
M Doc/conf.py

diff --git a/Doc/conf.py b/Doc/conf.py
index 29fb63cbcc86..e99b801d0ae8 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -68,8 +68,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 + '/*')



More information about the Python-checkins mailing list