Skip to content

Commit dcb101e

Browse files
authored
Exclude VENVDIR in Doc builds (python#3977)
1 parent 0a8ff1b commit dcb101e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ dist:
170170
cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub
171171

172172
check:
173-
$(PYTHON) tools/rstlint.py -i tools
173+
$(PYTHON) tools/rstlint.py -i tools -i $(VENVDIR) -i README.rst
174174

175175
serve:
176176
../Tools/scripts/serve.py build/html

Doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
needs_sphinx = '1.2'
3838

3939
# Ignore any .rst files in the venv/ directory.
40-
exclude_patterns = ['venv/*']
40+
venvdir = os.getenv('VENVDIR', 'venv')
41+
exclude_patterns = [venvdir+'/*', 'README.rst']
4142

4243

4344
# Options for HTML output

0 commit comments

Comments
 (0)