diff --git a/conf.py b/conf.py index 37e4f7b5bf2..4b508983488 100644 --- a/conf.py +++ b/conf.py @@ -26,23 +26,28 @@ # List of patterns (relative to source dir) to ignore when looking for source files. exclude_patterns = [ - # Windows: - "Thumbs.db", - ".DS_Store", - # Python: - ".venv", - "venv", - "requirements.txt", + # Any .txt files in subdirectories: + "**/*.txt", + # Non-PEP .txt files in the root (i.e. not "pep-[0-9][0-9][0-9][0-9].txt"): + "*[!0-9].txt", + "*[!0-9]?.txt", + "*[!0-9]??.txt", + "*[!0-9]???.txt", + "*[!p]?????.txt", + "*[!e]??????.txt", + "*[!p]???????.txt", + # Git + ".git", + # Python + "*env*", # Sphinx: "build", - "output.txt", # Link-check output - # PEPs: - "pep-0012", + # Meta files: "README.rst", "CONTRIBUTING.rst", "pep_sphinx_extensions/LICENCE.rst", - # Miscellaneous - ".codespell", + # Non-built files: + "pep-0012/pep-NNNN.rst", ] # -- Options for HTML output -------------------------------------------------