diff options
author | Ned Deily <nad@python.org> | 2017-10-12 20:39:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-12 20:39:51 (GMT) |
commit | dcb101e7f078f12fc3d2bf1730410798a880bfe3 (patch) | |
tree | 2a82aa4b899832952bf6fe9b288040ddc42f7d2d | |
parent | 0a8ff1bbd7a90baf989e10d0baeb887c80f09100 (diff) | |
download | cpython-dcb101e7f078f12fc3d2bf1730410798a880bfe3.zip cpython-dcb101e7f078f12fc3d2bf1730410798a880bfe3.tar.gz cpython-dcb101e7f078f12fc3d2bf1730410798a880bfe3.tar.bz2 |
Exclude VENVDIR in Doc builds (#3977)
-rw-r--r-- | Doc/Makefile | 2 | ||||
-rw-r--r-- | Doc/conf.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Doc/Makefile b/Doc/Makefile index da32743..7f3e216 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -170,7 +170,7 @@ dist: cp -pPR build/epub/Python.epub dist/python-$(DISTVERSION)-docs.epub check: - $(PYTHON) tools/rstlint.py -i tools + $(PYTHON) tools/rstlint.py -i tools -i $(VENVDIR) -i README.rst serve: ../Tools/scripts/serve.py build/html diff --git a/Doc/conf.py b/Doc/conf.py index b3f26d5..4145fd5 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -37,7 +37,8 @@ highlight_language = 'python3' needs_sphinx = '1.2' # Ignore any .rst files in the venv/ directory. -exclude_patterns = ['venv/*'] +venvdir = os.getenv('VENVDIR', 'venv') +exclude_patterns = [venvdir+'/*', 'README.rst'] # Options for HTML output |