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

This commit is contained in:
Hugo van Kemenade 2023-04-11 09:17:34 +03:00 committed by GitHub
parent 75b6ab80da
commit 280bd536b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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 + '/*')