mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
settings: Change the default IGNORE_FILES to all "hidden" files.
This is to avoid subtle behaviour that contributed to root cause of https://github.com/pelican-plugins/sitemap/issues/36 Specifically: if installing Pelican into a local virtualenv with the pdm or uv default name ".venv", then subdirectories of .venv will contain all of the test .rst and .md files. If you then run Pelican in that same root directory using the default PATH value (".") then it will add those content files to the site.
This commit is contained in:
parent
882cd16e11
commit
1edca55253
2 changed files with 6 additions and 6 deletions
|
|
@ -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 = {...}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue