Merge pull request #3424 from projectgus/settings/ignore_files

This commit is contained in:
Justin Mayer 2024-11-27 20:37:49 +01:00 committed by GitHub
commit 7096b0a168
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View file

@ -150,12 +150,12 @@ Basic settings
READERS = {'foo': FooReader}
.. data:: IGNORE_FILES = ['.#*']
.. data:: IGNORE_FILES = ['.*']
A list of glob patterns. Files and directories matching any of these
patterns will be ignored by the processor. For example, the default
``['.#*']`` will ignore emacs lock files, and ``['__pycache__']`` would
ignore Python 3's bytecode caches.
A list of glob patterns. Files and directories matching any of these patterns
will be ignored by the processor. For example, the default ``['.*']`` will
ignore "hidden" files and directories, and ``['__pycache__']`` would ignore
Python 3's bytecode caches.
.. data:: MARKDOWN = {...}

View file

@ -157,7 +157,7 @@ DEFAULT_CONFIG = {
"PYGMENTS_RST_OPTIONS": {},
"TEMPLATE_PAGES": {},
"TEMPLATE_EXTENSIONS": [".html"],
"IGNORE_FILES": [".#*"],
"IGNORE_FILES": [".*"],
"SLUG_REGEX_SUBSTITUTIONS": [
(r"[^\w\s-]", ""), # remove non-alphabetical/whitespace/'-' chars
(r"(?u)\A\s*", ""), # strip leading whitespace