@@ -5,6 +5,7 @@ from searx.version import VERSION_STRING
5from pallets_sphinx_themes import ProjectLink
5from pallets_sphinx_themes import ProjectLink
7GIT_URL = os.environ.get("GIT_URL", "https://github.com/asciimoo/searx")
7GIT_URL = os.environ.get("GIT_URL", "https://github.com/asciimoo/searx")
8+GIT_BRANCH =os.environ.get("GIT_BRANCH", "master")
8SEARX_URL = os.environ.get("SEARX_URL", "https://searx.me")
9SEARX_URL = os.environ.get("SEARX_URL", "https://searx.me")
9DOCS_URL = os.environ.get("DOCS_URL", "https://asciimoo.github.io/searx/")
10DOCS_URL = os.environ.get("DOCS_URL", "https://asciimoo.github.io/searx/")
@@ -35,7 +36,7 @@ extlinks['wiki'] = ('https://github.com/asciimoo/searx/wiki/%s', ' ')
35extlinks['pull'] = ('https://github.com/asciimoo/searx/pull/%s', 'PR ')
36extlinks['pull'] = ('https://github.com/asciimoo/searx/pull/%s', 'PR ')
37# links to custom brand
38# links to custom brand
38−extlinks['origin'] = (GIT_URL + '/blob/master/%s', 'git://')
39+extlinks['origin'] = (GIT_URL + '/blob/' + GIT_BRANCH + '/%s', 'git://')
39extlinks['patch'] = (GIT_URL + '/commit/%s', '#')
40extlinks['patch'] = (GIT_URL + '/commit/%s', '#')
40extlinks['search'] = (SEARX_URL + '/%s', '#')
41extlinks['search'] = (SEARX_URL + '/%s', '#')
41extlinks['docs'] = (DOCS_URL + '/%s', 'docs: ')
42extlinks['docs'] = (DOCS_URL + '/%s', 'docs: ')