Skip to content

Commit

Permalink
virtualenv: ignore any venv directories
Browse files Browse the repository at this point in the history
Problem: Sphinx will automatically traverse into the venv directory
causing errors.
See also: sphinx-doc/sphinx#1470

Solution: exclude the venv directory from both sphinx and git
  • Loading branch information
SteVwonder committed Sep 25, 2021
1 parent 7ec4c08 commit ad63bed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
_build
_build
venv
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'venv']

master_doc = 'index'
source_suffix = '.rst'
Expand Down

0 comments on commit ad63bed

Please sign in to comment.