Skip to content

Commit a836d79

Browse files
Docs: don't render files in includes/, they're for embedding only (GH-103313)
(cherry picked from commit 280bd53) Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 4a05392 commit a836d79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@
6363
# Minimum version of sphinx required
6464
needs_sphinx = '3.2'
6565

66+
# Ignore any .rst files in the includes/ directory;
67+
# they're embedded in pages but not rendered individually.
6668
# Ignore any .rst files in the venv/ directory.
67-
exclude_patterns = ['venv/*', 'README.rst']
69+
exclude_patterns = ['includes/*.rst', 'venv/*', 'README.rst']
6870
venvdir = os.getenv('VENVDIR')
6971
if venvdir is not None:
7072
exclude_patterns.append(venvdir + '/*')

0 commit comments

Comments
 (0)