updating documentation

This commit is contained in:
2020-01-13 00:32:35 +00:00
parent f0e00d8f2a
commit 1f2072e837
9 changed files with 22 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
.. include:: ../global.rst
Config :modname:`panaetius.config`
panaetius.config :modname:`panaetius.config`
-------------------------------------
.. automodule:: panaetius.config

View File

@@ -1,6 +1,6 @@
.. include:: ../global.rst
Config :modname:`panaetius.config_inst`
panaetius.config_inst :modname:`panaetius.config_inst`
---------------------------------------
.. automodule:: panaetius.config_inst

View File

@@ -1,6 +1,6 @@
.. include:: ../global.rst
Config :modname:`panaetius.db`
panaetius.db :modname:`panaetius.db`
-------------------------------------
.. automodule:: panaetius.db

View File

@@ -1,6 +1,6 @@
.. include:: ../global.rst
Config :modname:`panaetius.header`
panaetius.header :modname:`panaetius.header`
-------------------------------------
.. automodule:: panaetius.header

View File

@@ -1,6 +1,6 @@
.. include:: ../global.rst
Config :modname:`panaetius.library`
panaetius.library :modname:`panaetius.library`
-------------------------------------
.. automodule:: panaetius.library

View File

@@ -1,7 +1,7 @@
.. include:: ../global.rst
Config :modname:`panaetius.logging`
-------------------------------------
panaetius.logging :modname:`panaetius.logging`
----------------------------------------------
.. automodule:: panaetius.logging
:members:

View File

@@ -1,6 +1,6 @@
.. include:: ../global.rst
Config :modname:`panaetius`
panaetius :modname:`panaetius`
-------------------------------------
.. automodule:: panaetius

View File

@@ -7,7 +7,7 @@ authors = ["dtomlinson <dtomlinson@panaetius.co.uk>"]
readme = "/Users/dtomlinson/git-repos/projects/panaetius/README.md"
homepage = "https://github.com/dtomlinson91/panaetius"
repository = "https://github.com/dtomlinson91/panaetius"
documentation = "https://github.com/dtomlinson91/panaetius"
documentation = "https://panaetius.readthedocs.io/en/latest/introduction.html"
classifiers = [
"Environment :: Plugins",
"Intended Audience :: Developers",

View File

@@ -56,23 +56,23 @@ def set_config(
to define a list, but want to make sure that a string representation
of a list will be loaded properly if it set as an environment variable.
Example:
Example:
`config.toml` has the following attribute set:
```
[package.users]
auth = ['user1', 'user2']
```
`config.toml` has the following attribute set:
```
[package.users]
auth = ['user1', 'user2']
```
If set as an environment variable you can pass this list as a string
and set check=list:
If set as an environment variable you can pass this list as a string
and set check=list:
Environment variable:
PACKAGE_USERS_AUTH = "['user1', 'user2']"
Environment variable:
PACKAGE_USERS_AUTH = "['user1', 'user2']"
Usage in code:
```python
set_config(CONFIG, 'users.auth', check=list)
Usage in code:
```python
set_config(CONFIG, 'users.auth', check=list)
```
"""
config_var = key.lower().replace('.', '_')