aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-08-06 20:26:27 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-08-06 20:26:27 +0200
commit728be8f3fd1a4e963707af9d2dbd86f252375247 (patch)
tree6979b3ecfeb2d176ebec5c586df8b78cbe46a246
parentAdd hover text in search result view. (diff)
downloadmu4web-728be8f3fd1a4e963707af9d2dbd86f252375247.tar.gz
mu4web-728be8f3fd1a4e963707af9d2dbd86f252375247.tar.xz
Add documentation creation to makefile.
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4ba0066..753fe28 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
-.PHONY: tags check
+.PHONY: tags check documentation sphinx-apidoc
+
+DOC_OUTPUT = doc.rendered
tags:
ctags `find mu4web -type f -name \*.py `
@@ -6,3 +8,11 @@ tags:
check:
mypy -p mu4web
flake8 mu4web
+
+sphinx-apidoc:
+ sphinx-apidoc --separate --force -o doc mu4web
+
+$(DOC_OUTPUT)/index.html: sphinx-apidoc
+ sphinx-build -b dirhtml doc $(DOC_OUTPUT)
+
+documentation: $(DOC_OUTPUT)/index.html