mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Override settings from the commandline
Add a --setting-overrides KEY=VAL commandline option to override arbitrary items from pelicanconf.py settings files. This adds flexibility in running pelican and helps reduce sprawl of settings files. Cast int and str setting overrides to their respective types. Support other setting types by treating them as json. Fallback to json when an override typecast errors. This should make it possible to set int values to None, resp. to json 'none'
This commit is contained in:
parent
21242e3a47
commit
34edcdf33d
4 changed files with 65 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -3,6 +3,7 @@
|
|||
.*.swo
|
||||
*.pyc
|
||||
.DS_Store
|
||||
.idea
|
||||
docs/_build
|
||||
docs/fr/_build
|
||||
build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue