Skip to content

Commit

Permalink
Merge pull request #3424 from projectgus/settings/ignore_files
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer authored Nov 27, 2024
2 parents ac28ddb + 1edca55 commit 7096b0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {...}

Expand Down
2 changes: 1 addition & 1 deletion pelican/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def load_source(name: str, path: str) -> ModuleType:
"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
Expand Down

0 comments on commit 7096b0a

Please sign in to comment.