diff --git a/docs/settings.rst b/docs/settings.rst index 93c632d21..b442451a2 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -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 = {...} diff --git a/pelican/contents.py b/pelican/contents.py index a7a8e015f..2abdf492e 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -358,8 +358,9 @@ def _find_path(path: str) -> Optional[Content]: origin = joiner(siteurl, Author(path, self.settings).url) else: logger.warning( - "Replacement Indicator '%s' not recognized, skipping replacement", + "Replacement Indicator %r not recognized in %r, skipping replacement", what, + origin, ) # keep all other parts, such as query, fragment, etc. diff --git a/pelican/settings.py b/pelican/settings.py index 66d6beeb2..1c6b5c76d 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -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 diff --git a/pelican/tests/test_contents.py b/pelican/tests/test_contents.py index cefadd9fe..97653e33e 100644 --- a/pelican/tests/test_contents.py +++ b/pelican/tests/test_contents.py @@ -1058,7 +1058,7 @@ def test_unknown_link_syntax(self): self.assertEqual(content, html) self.assertLogCountEqual( count=1, - msg="Replacement Indicator 'unknown' not recognized, " + msg="Replacement Indicator 'unknown' not recognized in '{unknown}foo', " "skipping replacement", level=logging.WARNING, )