mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-28 05:36:46 +00:00
Prevent infinite loop when serving development version of docs
This commit is contained in:
parent
5ec98a62dd
commit
3c65e99427
2
main.py
2
main.py
@ -9,6 +9,8 @@ def define_env(env):
|
|||||||
# Ensure that the config template is always up to date
|
# Ensure that the config template is always up to date
|
||||||
CFG_URL = "https://raw.githubusercontent.com/inventree/InvenTree/master/InvenTree/config_template.yaml"
|
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)
|
response = request.urlopen(CFG_URL)
|
||||||
print(f"Reading config template from GitHub: Response {response.status}")
|
print(f"Reading config template from GitHub: Response {response.status}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user