summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-29 16:28:17 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-29 16:28:17 +0200
commit0742c2504dae04ac054d263de8a2b8ab6161312c (patch)
treec9b06ed020551e7f7e5648fd679717518b487544 /docs
parent7b4cf2eb489d8f6c95ccac5af180254b78e7c460 (diff)
build environment: add GIT_BRANCH variable
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py2
-rw-r--r--docs/dev/makefile.rst6
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 761465c47..9e6d32931 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -6,7 +6,7 @@ from searx.version import VERSION_STRING
from pallets_sphinx_themes import ProjectLink
from searx.brand import GIT_URL
-GIT_BRANCH =os.environ.get("GIT_BRANCH", "master")
+GIT_BRANCH = os.environ.get("GIT_BRANCH", "master")
from searx.brand import SEARX_URL
from searx.brand import DOCS_URL
diff --git a/docs/dev/makefile.rst b/docs/dev/makefile.rst
index 85aea8ae9..fc0b4639c 100644
--- a/docs/dev/makefile.rst
+++ b/docs/dev/makefile.rst
@@ -46,9 +46,9 @@ Makefile setup
The main setup is done in the :origin:`Makefile`::
- export SEARX_URL=https://searx.me
-
export GIT_URL=https://github.com/asciimoo/searx
+ export GIT_BRANCH=master
+ export SEARX_URL=https://searx.me
export DOCS_URL=https://asciimoo.github.io/searx
.. sidebar:: fork & upstream
@@ -58,6 +58,8 @@ The main setup is done in the :origin:`Makefile`::
:GIT_URL: Changes this, to point to your searx fork.
+:GIT_BRANCH: Changes this, to point to your searx branch.
+
:SEARX_URL: Changes this, to point to your searx instance.
:DOCS_URL: If you host your own (branded) documentation, change this URL.