forked from lemon24/reader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config file docs for lemon24#177.
- Loading branch information
Showing
7 changed files
with
118 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
Configuration | ||
============= | ||
|
||
Both the :doc:`CLI <cli>` and the :doc:`web application <app>` can | ||
be configured from a file. | ||
|
||
.. warning:: | ||
|
||
The configuration file format is not stable yet | ||
and might change without any notice. | ||
|
||
.. note:: | ||
|
||
Configuration file loading dependencies get installed automatically when | ||
installing the CLI or the web application | ||
:ref:`extras <Optional dependencies>`. | ||
|
||
|
||
The configuration file path can be specified either through the ``--config`` | ||
CLI option or through the ``READER_CONFIG`` environment variable | ||
(also usable with the web application). | ||
|
||
The config file is split in contexts; | ||
this allows having a set of global defaults | ||
and overriding them with CLI- or web-app-specific values. | ||
Use the ``config dump --merge`` command | ||
to see the final configuration for each context. | ||
|
||
The older ``READER_DB``, ``READER_PLUGIN``, and ``READER_APP_PLUGIN`` | ||
environment variables always *replace* the corresponding config values, | ||
so they should be used only for debugging. | ||
|
||
The following example shows the config file structure | ||
and the options currently available: | ||
|
||
.. literalinclude:: ../examples/config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ User’s guide | |
fts | ||
cli | ||
app | ||
config | ||
plugins | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters