]> kaliko git repositories - mpd-sima.git/commitdiff
doc: Add publish target
authorkaliko <kaliko@azylum.org>
Thu, 18 Nov 2021 11:44:12 +0000 (12:44 +0100)
committerkaliko <kaliko@azylum.org>
Mon, 22 Nov 2021 15:01:36 +0000 (16:01 +0100)
doc/Makefile

index a0aeb347a500dfaa2df8b4c2014df13b9fc1d8a5..f832ce135c637d5b7a9bae15e93369ac997ff017 100644 (file)
@@ -19,7 +19,7 @@ ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) sou
 # the i18n builder cannot share the environment and doctrees with the others
 I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
 
-.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext publish
 
 help:
        @echo "Please use \`make <target>' where <target> is one of"
@@ -190,3 +190,8 @@ pseudoxml:
        $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
        @echo
        @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
+
+publish: html
+       rsync -avh ./build/html/ kaliko.me:var/www/kaliko/media/sima
+       @echo
+       @echo "Publishing to https://media.kaliko.me/sima finished."