Documentation and settings improved

This commit is contained in:
Soxoj
2021-11-06 08:22:23 +03:00
parent f81a500d72
commit 7a362406d5
9 changed files with 62 additions and 21 deletions
+26
View File
@@ -0,0 +1,26 @@
.. _settings:
Settings
==============
Options are also configurable through settings files. See
`settings.json <https://github.com/soxoj/maigret/blob/main/maigret/resources/settings.json>`
for the list of currently supported options.
After start Maigret tries to load configuration from the following sources in exactly the same order:
.. code-block:: console
# relative path, based on installed package path
resources/settings.json
# absolute path, configuration file in home directory
~/.maigret/settings.json
# relative path, based on current working directory
settings.json
Missing any of these files is not an error.
If the next settings file contains already known option,
this option will be rewrited. So it is possible to make
custom configuration for different users and directories.