mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix #2938
Get rid of the coerce_overrides() function. Add the ParseOverrides argparse.Action to parse overrides. Treat all extra settings values strictly as json values. Test overrides. Edit docs and cli help.
This commit is contained in:
parent
ab81f183c6
commit
5c178a1ccb
5 changed files with 42 additions and 60 deletions
|
|
@ -9,11 +9,12 @@ line::
|
|||
If you used the ``pelican-quickstart`` command, your primary settings file will
|
||||
be named ``pelicanconf.py`` by default.
|
||||
|
||||
You can also specify extra settings via ``-e`` / ``--extra-settings`` option
|
||||
flags, which will override default settings as well as any defined within
|
||||
settings files::
|
||||
You can also specify settings via ``-e`` / ``--extra-settings`` option
|
||||
flags. It will override default settings as well as any defined within the
|
||||
setting file. Note that values must follow JSON notation::
|
||||
|
||||
pelican content -e SITENAME='"A site"' READERS='{"html": null}' CACHE_CONTENT=true
|
||||
|
||||
pelican content -e DELETE_OUTPUT_DIRECTORY=true
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue