2
0
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:
Oliver Walters 2022-04-20 22:49:45 +10:00
parent 5ec98a62dd
commit 3c65e99427

View File

@ -9,6 +9,8 @@ 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}")