on master help sign in
[fix] brands: add variables from build env to sphinx-doc

We have some variables in the build environment which are also needed in the sphinx-process. Theses variables are relavant if one creates a fork with its own branding. We treat these variables under the term 'brands'. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>

commite84fc94300750c41642bea97d2d9cc020f746c66 authorMarkus Heiser <markus.heiser@darmarit.de> dateWed 25 Mar 2020, 11:51 (7 years ago) parent04c6874
1 file changed+3−3
docs/conf.py+3−3
docs/conf.py+3−3
@@ -4,9 +4,9 @@ import sys, os
44from searx.version import VERSION_STRING
55from pallets_sphinx_themes import ProjectLink
66
7−GIT_URL = os.environ.get("GIT_URL", "https://github.com/asciimoo/searx")
8−SEARX_URL = os.environ.get("SEARX_URL", "https://searx.me")
9−DOCS_URL = os.environ.get("DOCS_URL", "https://asciimoo.github.io/searx/")
7+from searx.brand import GIT_URL
8+from searx.brand import SEARX_URL
9+from searx.brand import DOCS_URL
1010
1111# Project --------------------------------------------------------------
1212