From 0d6c13e13f78aade71e5df47f1ccce019e6f6e2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnter=20Milde?= Date: Wed, 29 Jun 2022 18:50:55 +0200 Subject: [PATCH] Add make target to move HTML documentation to the "pages" folder. The pages folder is a separate documentation repository that is published under "https://milde.codeberg.page/". --- doc/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/Makefile b/doc/Makefile index 1a730ad..aafbf55 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -7,11 +7,12 @@ SPHINXBUILD = sphinx-build INDIR = . HTMLDIR = build/html +PAGESDIR = ../pages/PyLit # Internal variables. ALLSPHINXOPTS = -d build/doctrees $(SPHINXOPTS) $(INDIR) -.PHONY: examples help clean html web pickle htmlhelp latex changes linkcheck +.PHONY: examples help clean html web pickle htmlhelp latex changes linkcheck pages logo/pylit-bold-framed.png: logo/pylit-bold-framed.svg inkscape --export-png=logo/pylit-bold-framed.png logo/pylit-bold-framed.svg @@ -36,6 +37,7 @@ help: @echo " latex to make LaTeX files" @echo " changes to make an overview over all changed/added/deprecated items" @echo " linkcheck to check all external links for integrity" + @echo " pages to move the HTML files to ../pages/PyLit/" clean: -rm -rf build/* @@ -98,3 +100,8 @@ linkcheck: @echo @echo "Link check complete; look for any errors in the above output " \ "or in build/linkcheck/output.txt." + +pages: html + cp $(HTMLDIR)/*.html $(HTMLDIR)/*.js $(PAGESDIR) + cp -r $(HTMLDIR)/_static $(HTMLDIR)/download \ + $(HTMLDIR)/examples $(HTMLDIR)/tutorial $(PAGESDIR) -- 2.11.4.GIT