SPHINXBUILD = sphinx-build
BUILDDIR = _build
CHROMESITE_BUILDDIR = $(realpath ../../doc_generated)
+PORT = 8000
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
help:
@echo "Please use \`make <target>' where <target> is one of"
+ @echo " html to make standalone HTML files"
@echo " chromesite build docs for developer.chrome.com"
@echo " chromesite_rst only build .rst docs; no doxygen"
@echo " serve start python web server for chromesite docs"
clean:
rm -rf $(BUILDDIR)/*
+html:
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
-rm $(BUILDDIR)/.buildinfo
$(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(BUILDDIR)
-serve:
- ../../../chrome/common/extensions/docs/server2/preview.py
+serve: chromesite_rst
+ ../../../chrome/common/extensions/docs/server2/preview.py -p $(PORT)