mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 11:40:01 +00:00
[fix] brands: add variables from build env to jinja templating
We have some variables in the build environment which are also needed in the templating 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>
This commit is contained in:
13
Makefile
13
Makefile
@@ -71,15 +71,22 @@ $(GH_PAGES)::
|
||||
# update project files
|
||||
# --------------------
|
||||
|
||||
PHONY += project engines-languages
|
||||
PHONY += project engines-languages searx.brand
|
||||
|
||||
project: searx/data/engines_languages.json
|
||||
project: searx/data/engines_languages.json searx.brand
|
||||
|
||||
searx/data/engines_languages.json: pyenvinstall
|
||||
engines-languages: pyenvinstall
|
||||
$(PY_ENV_ACT); python utils/fetch_languages.py
|
||||
mv engines_languages.json searx/data/engines_languages.json
|
||||
mv languages.py searx/languages.py
|
||||
|
||||
searx.brand:
|
||||
$(Q)echo "build searx/brand.py"
|
||||
$(Q)echo "GIT_URL = '$(GIT_URL)'" > searx/brand.py
|
||||
$(Q)echo "SEARX_URL = '$(SEARX_URL)'" >> searx/brand.py
|
||||
$(Q)echo "DOCS_URL = '$(DOCS_URL)'" >> searx/brand.py
|
||||
$(Q)echo "PUBLIC_INSTANCES = 'https://searx.space'" >> searx/brand.py
|
||||
|
||||
# test
|
||||
# ----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user