From 76ca5d9271d1130b5024c745ed86c99af958844d Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Wed, 4 Dec 2024 18:48:08 +0100 Subject: [PATCH] Add staging url --- sphinx/sphinx_to_html.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sphinx/sphinx_to_html.py b/sphinx/sphinx_to_html.py index 6747e51..cc3ace5 100755 --- a/sphinx/sphinx_to_html.py +++ b/sphinx/sphinx_to_html.py @@ -12,6 +12,7 @@ import sys page_contents = sys.stdin.read() base_url = "https://projects.blender.org" +staging_base_url = "https://projects.staging.blender.org" uatest_base_url = "https://uatest.projects.blender.org" local_url = "http://localhost:3000" placeholder_url = "https://placeholder.org" @@ -20,6 +21,8 @@ placeholder_url = "https://placeholder.org" gitea_prefix = os.environ.get("GITEA_PREFIX_SRC", "") if gitea_prefix.startswith(base_url): gitea_prefix = gitea_prefix[len(base_url):] +if gitea_prefix.startswith(staging_base_url): + gitea_prefix = gitea_prefix[len(staging_base_url):] if gitea_prefix.startswith(uatest_base_url): gitea_prefix = gitea_prefix[len(uatest_base_url):] if gitea_prefix.startswith(local_url):