diff options
author | Peter Magnusson <peter@wselcon.se> | 2019-04-24 15:46:47 +0200 |
---|---|---|
committer | Peter Magnusson <peter@wselcon.se> | 2019-04-24 15:46:47 +0200 |
commit | 51224704728993f9825d538a0d50f5dd9312b22e (patch) | |
tree | f01a1cffb9fe2776f61ba6cfc82c3bae87bc152b /docs/Makefile | |
parent | f5008037d4d0ebd479944d05f8f26bd01cbf6767 (diff) | |
download | vyos-documentation-51224704728993f9825d538a0d50f5dd9312b22e.tar.gz vyos-documentation-51224704728993f9825d538a0d50f5dd9312b22e.zip |
Add sphinx-autobuild to docker
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile index 6bf90e40..2b9976d5 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -8,6 +8,10 @@ SPHINXPROJ = VyOS SOURCEDIR = . BUILDDIR = _build +AUTOHOST =0.0.0.0 +AUTOPORT =8000 +AUTOOPTS =--poll + # Put it first so that "make" without argument is like "make help". help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) @@ -17,4 +21,8 @@ help: # 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) + +livehtml: + sphinx-autobuild --host $(AUTOHOST) --port $(AUTOPORT) $(AUTOOPTS) \ + "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
\ No newline at end of file |