summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-02 19:00:19 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-02 19:00:19 +0100
commitc3e4753ce951f759844db13d98f9ad5b226f84b6 (patch)
tree70841eec657c248ffd2048c4175d80cd4a345508 /Makefile
parent491cb95a1f910e17ac022ddfa73b68aae2fbc6e2 (diff)
downloadsearxng-c3e4753ce951f759844db13d98f9ad5b226f84b6.tar.gz
searxng-c3e4753ce951f759844db13d98f9ad5b226f84b6.zip
docs: generic documentation from the installation scripts
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1d26ef187..fadf80cdc 100644
--- a/Makefile
+++ b/Makefile
@@ -60,13 +60,21 @@ run: pyenvinstall
# ----
PHONY += docs
-docs: pyenvinstall sphinx-doc
+
+docs: pyenvinstall sphinx-doc prebuild-includes
$(call cmd,sphinx,html,docs,docs)
PHONY += docs-live
-docs-live: pyenvinstall sphinx-live
+docs-live: pyenvinstall sphinx-live prebuild-includes
$(call cmd,sphinx_autobuild,html,docs,docs)
+prebuild-includes:
+ @mkdir -p $(DOCS_BUILD)/includes
+ @./utils/searx.sh doc | cat > $(DOCS_BUILD)/includes/searx.rst
+ @./utils/filtron.sh doc | cat > $(DOCS_BUILD)/includes/filtron.rst
+ @./utils/morty.sh doc | cat > $(DOCS_BUILD)/includes/morty.rst
+
+
$(GH_PAGES)::
@echo "doc available at --> $(DOCS_URL)"