OLD | NEW |
1 # Makefile for Sphinx documentation | 1 # Makefile for Sphinx documentation |
2 # | 2 # |
3 | 3 |
4 # You can set these variables from the command line. | 4 # You can set these variables from the command line. |
5 SPHINXOPTS = -W | 5 SPHINXOPTS = -W |
6 SPHINXBUILD = sphinx-build | 6 SPHINXBUILD = sphinx-build |
7 BUILDDIR = _build | 7 BUILDDIR = _build |
8 CHROMESITE_BUILDDIR = $(realpath ../../doc_generated) | 8 CHROMESITE_BUILDDIR = $(realpath ../../doc_generated) |
| 9 PORT = 8000 |
9 | 10 |
10 # User-friendly check for sphinx-build | 11 # User-friendly check for sphinx-build |
11 ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) | 12 ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) |
12 $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx in
stalled, then set the SPHINXBUILD environment variable to point to the full path
of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory wit
h the executable to your PATH. If you don't have Sphinx installed, grab it from
http://sphinx-doc.org/) | 13 $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx in
stalled, then set the SPHINXBUILD environment variable to point to the full path
of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory wit
h the executable to your PATH. If you don't have Sphinx installed, grab it from
http://sphinx-doc.org/) |
13 endif | 14 endif |
14 | 15 |
15 # Internal variables. | 16 # Internal variables. |
16 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) . | 17 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) . |
17 | 18 |
18 .PHONY: all help clean linkcheck doctest chromesite chromesite_rst serve | 19 .PHONY: all help clean linkcheck doctest chromesite chromesite_rst serve |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 -rm $(CHROMESITE_BUILDDIR)/.buildinfo | 63 -rm $(CHROMESITE_BUILDDIR)/.buildinfo |
63 $(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(CHROMESITE_BUILDDIR) | 64 $(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(CHROMESITE_BUILDDIR) |
64 rm -rf $(CHROMESITE_BUILDDIR)/images | 65 rm -rf $(CHROMESITE_BUILDDIR)/images |
65 cp -r $(CHROMESITE_BUILDDIR)/_images $(CHROMESITE_BUILDDIR)/images | 66 cp -r $(CHROMESITE_BUILDDIR)/_images $(CHROMESITE_BUILDDIR)/images |
66 rm -rf $(CHROMESITE_BUILDDIR)/{_images,searchindex.js} | 67 rm -rf $(CHROMESITE_BUILDDIR)/{_images,searchindex.js} |
67 | 68 |
68 presubmit: | 69 presubmit: |
69 -rm $(BUILDDIR)/.buildinfo | 70 -rm $(BUILDDIR)/.buildinfo |
70 $(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(BUILDDIR) | 71 $(SPHINXBUILD) -b chromesite $(ALLSPHINXOPTS) $(BUILDDIR) |
71 | 72 |
72 serve: | 73 serve: chromesite_rst |
73 » ../../../chrome/common/extensions/docs/server2/preview.py | 74 » ../../../chrome/common/extensions/docs/server2/preview.py -p $(PORT) |
OLD | NEW |