From 728be8f3fd1a4e963707af9d2dbd86f252375247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 6 Aug 2023 20:26:27 +0200 Subject: Add documentation creation to makefile. --- Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3