mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #3424 from projectgus/settings/ignore_files
This commit is contained in:
commit
7096b0a168
2 changed files with 6 additions and 6 deletions
|
|
@ -150,12 +150,12 @@ Basic settings
|
||||||
|
|
||||||
READERS = {'foo': FooReader}
|
READERS = {'foo': FooReader}
|
||||||
|
|
||||||
.. data:: IGNORE_FILES = ['.#*']
|
.. data:: IGNORE_FILES = ['.*']
|
||||||
|
|
||||||
A list of glob patterns. Files and directories matching any of these
|
A list of glob patterns. Files and directories matching any of these patterns
|
||||||
patterns will be ignored by the processor. For example, the default
|
will be ignored by the processor. For example, the default ``['.*']`` will
|
||||||
``['.#*']`` will ignore emacs lock files, and ``['__pycache__']`` would
|
ignore "hidden" files and directories, and ``['__pycache__']`` would ignore
|
||||||
ignore Python 3's bytecode caches.
|
Python 3's bytecode caches.
|
||||||
|
|
||||||
.. data:: MARKDOWN = {...}
|
.. data:: MARKDOWN = {...}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ DEFAULT_CONFIG = {
|
||||||
"PYGMENTS_RST_OPTIONS": {},
|
"PYGMENTS_RST_OPTIONS": {},
|
||||||
"TEMPLATE_PAGES": {},
|
"TEMPLATE_PAGES": {},
|
||||||
"TEMPLATE_EXTENSIONS": [".html"],
|
"TEMPLATE_EXTENSIONS": [".html"],
|
||||||
"IGNORE_FILES": [".#*"],
|
"IGNORE_FILES": [".*"],
|
||||||
"SLUG_REGEX_SUBSTITUTIONS": [
|
"SLUG_REGEX_SUBSTITUTIONS": [
|
||||||
(r"[^\w\s-]", ""), # remove non-alphabetical/whitespace/'-' chars
|
(r"[^\w\s-]", ""), # remove non-alphabetical/whitespace/'-' chars
|
||||||
(r"(?u)\A\s*", ""), # strip leading whitespace
|
(r"(?u)\A\s*", ""), # strip leading whitespace
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue