mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 02:27:59 +00:00
ifcopenshell docs make - add server target
This commit is contained in:
@@ -11,9 +11,15 @@ BUILDDIR = _build
|
|||||||
# Put it first so that "make" without argument is like "make help".
|
# Put it first so that "make" without argument is like "make help".
|
||||||
help:
|
help:
|
||||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
|
@echo ""
|
||||||
|
@echo "You can also do 'make server' to launch html server for previously built html docs."
|
||||||
|
|
||||||
.PHONY: help Makefile
|
.PHONY: help Makefile
|
||||||
|
|
||||||
|
server:
|
||||||
|
python -m http.server 8080 --directory $(BUILDDIR)/html
|
||||||
|
.PHONY: server Makefile
|
||||||
|
|
||||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||||
%: Makefile
|
%: Makefile
|
||||||
|
|||||||
Reference in New Issue
Block a user