From 10fd85cfc28c2497f0a4b8afb47a86fb6cb48b41 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Dec 16 2016 21:17:13 +0000 Subject: Update the makefile to build the docs for Pagure Signed-off-by: Jeremy Cline --- diff --git a/docs/Makefile b/docs/Makefile index 0eae3a5..d142fa1 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -12,9 +12,16 @@ BUILDDIR = _build help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -.PHONY: help Makefile +pagure-docs: html + @git clone ssh://git@pagure.io/docs/fegistry.git _build/fegistry-docs + @cp -r _build/html/* _build/fegistry-docs/ + @echo "Done building docs" + @echo "Inspect _build/fegistry-docs and push it when ready" + + +.PHONY: help pagure-docs Makefile # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \ No newline at end of file + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)