Skip to content

Commit e4b618d

Browse files
committed
Sphinx: always exclude the build directory
We use the _build/ directory for all builders. Some users may not have that directory excluded, leading to some extra copy operations. Fixes #7200
1 parent 4967925 commit e4b618d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl

+4
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,7 @@ if chinese:
178178
latex_elements = latex_elements_user or latex_elements_rtd
179179
elif japanese:
180180
latex_engine = latex_engine_user or 'platex'
181+
182+
# Make sure our build directory is always excluded
183+
exclude_patterns = globals().get('exclude_patterns', [])
184+
exclude_patterns.extend(['_build'])

0 commit comments

Comments
 (0)