getpelican / pelican

Static site generator that supports Markdown and reST syntax. Powered by Python.
https://getpelican.com
GNU Affero General Public License v3.0
12.61k stars 1.81k forks source link

feat: Change `IGNORE_FILES` setting default to all hidden files #3424

Closed projectgus closed 3 days ago

projectgus commented 3 weeks ago

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.

Pull Request Checklist

Resolves: #issue-number-here

(I haven't added a new test for the default setting, but I can if needed.)