add way of autocompile documentation

pull/3393/head
Daniel Chimeno 2017-02-19 16:41:02 +01:00 zatwierdzone przez Matt Westcott
rodzic 85de048a89
commit f70226c845
2 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -180,3 +180,8 @@ pseudoxml:
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
livehtml:
sphinx-autobuild --poll -p 4000 -H 0.0.0.0 -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

Wyświetl plik

@ -180,3 +180,13 @@ To clear the built HTML and start fresh, so you can see all warnings thrown when
$ cd docs/
$ make clean
$ make html
Wagtail also provides a way for documentation to be compiled automatically on each change.
To do this, you can run the following command to see the changes automatically at ``localhost:4000``:
.. code-block:: console
$ cd docs/
$ make livehtml