From 956ef33603eafbd43a1acdb1b7aa6737e9d57956 Mon Sep 17 00:00:00 2001 From: James Hiew Date: Wed, 7 Dec 2016 22:05:10 +0000 Subject: [PATCH] Add sphinx-autobuild to requirements_test.txt Run `make livehtml` to auto-rebuild docs and make them available at 127.0.0.1:8000 --- docs/Makefile | 5 ++++- requirements_test.txt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index 1005e26597..58a7960caf 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -174,4 +174,7 @@ xml: pseudoxml: $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml @echo - @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." \ No newline at end of file + @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." + +livehtml: + sphinx-autobuild -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html \ No newline at end of file diff --git a/requirements_test.txt b/requirements_test.txt index d1ed81d900..c3b84430a4 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -11,6 +11,7 @@ tox>=2.3.1 # Docs sphinx_rtd_theme==0.1.9 +sphinx-autobuild==0.6.0 # Contrib packages djangorestframework==3.4.6