From a5eefea61d8a2287a0065f79cbe12d4e415be743 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 4 Feb 2020 13:26:43 +0100 Subject: [PATCH] docs: fix extlink 'origin' to use GIT_BRANCH env Signed-off-by: Markus Heiser --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 8c5f6b31..8b4276c1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -5,6 +5,7 @@ from searx.version import VERSION_STRING from pallets_sphinx_themes import ProjectLink GIT_URL = os.environ.get("GIT_URL", "https://github.com/asciimoo/searx") +GIT_BRANCH =os.environ.get("GIT_BRANCH", "master") SEARX_URL = os.environ.get("SEARX_URL", "https://searx.me") DOCS_URL = os.environ.get("DOCS_URL", "https://asciimoo.github.io/searx/") @@ -35,7 +36,7 @@ extlinks['wiki'] = ('https://github.com/asciimoo/searx/wiki/%s', ' ') extlinks['pull'] = ('https://github.com/asciimoo/searx/pull/%s', 'PR ') # links to custom brand -extlinks['origin'] = (GIT_URL + '/blob/master/%s', 'git://') +extlinks['origin'] = (GIT_URL + '/blob/' + GIT_BRANCH + '/%s', 'git://') extlinks['patch'] = (GIT_URL + '/commit/%s', '#') extlinks['search'] = (SEARX_URL + '/%s', '#') extlinks['docs'] = (DOCS_URL + '/%s', 'docs: ')