From 09f4ed30fab20d5dca314e9913db4f66cb50a715 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Sat, 12 Mar 2022 12:05:47 -0600 Subject: [PATCH] Infra: More clearly define, describe and organize exclude patterns --- conf.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/conf.py b/conf.py index 6699922c17c6..4dd4bfce4d89 100644 --- a/conf.py +++ b/conf.py @@ -26,9 +26,9 @@ # List of patterns (relative to source dir) to ignore when looking for source files. exclude_patterns = [ - # .txt files in subdirs + # Any .txt files in subdirectories: "**/*.txt", - # .txt files in the root not matching PEP pattern + # 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", @@ -36,18 +36,16 @@ "*[!p]?????.txt", "*[!e]??????.txt", "*[!p]???????.txt", - # Windows: - "Thumbs.db", - ".DS_Store", # Git ".git", # Sphinx: "build", - # PEPs: - "pep-0012/*", + # Meta files: "README.rst", "CONTRIBUTING.rst", "pep_sphinx_extensions/LICENCE.rst", + # Non-built files: + "pep-0012/pep-NNNN.rst", ] # -- Options for HTML output -------------------------------------------------