mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-09-13 22:21:33 +00:00
Update configuration documentation (#342)
* Update docs for config.yaml (cherry picked from commit eb7d4bb251f8c59f4dba2ebce67e6a3d27bd233e) * Add more settings (cherry picked from commit 70cf34c7afaef23133d3215e957add6ffa3a4928) * Config docs cleanup * Update docker dev quickstart guide * plugin settings * Document currency support * Add extra information for secret_key * Slight tweaks to docker setup guide
This commit is contained in:
15
main.py
15
main.py
@@ -6,21 +6,6 @@ from urllib import request
|
||||
|
||||
def define_env(env):
|
||||
|
||||
# Ensure that the config template is always up to date
|
||||
CFG_URL = "https://raw.githubusercontent.com/inventree/InvenTree/master/InvenTree/config_template.yaml"
|
||||
|
||||
# Only perform this step if we are building on RTD server
|
||||
if os.environ.get('READTHEDOCS', False):
|
||||
response = request.urlopen(CFG_URL)
|
||||
print(f"Reading config template from GitHub: Response {response.status}")
|
||||
|
||||
if response.status == 200:
|
||||
data = response.read()
|
||||
|
||||
if len(data) > 0:
|
||||
with open("_includes/config.yaml", "w") as f:
|
||||
f.write(str(data.decode()))
|
||||
|
||||
@env.macro
|
||||
def listimages(subdir):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user