Debian Codegraph @

doc/Makefile

raw
1 # Minimal makefile for Sphinx documentation
2 #
3
4 # You can set these variables from the command line.
5 SPHINXAPIDOC = sphinx-apidoc
6 SPHINXOPTS = -c source
7 SPHINXBUILD = sphinx-build
8 SPHINXPROJ = kubernetes-python
9 SOURCEDIR = source
10 BUILDDIR = build
11
12 # Put it first so that "make" without argument is like "make help".
13 help:
14 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
15
16 .PHONY: help Makefile
17
18 # additional step to use sphinx-apidoc to generate rst files for APIs
19 rst:
20 rm -f $(SOURCEDIR)/kubernetes.*.rst
21 $(SPHINXAPIDOC) -o "$(SOURCEDIR)" ../kubernetes/ -e -f
22
23 # Catch-all target: route all unknown targets to Sphinx using the new
24 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
25 html: rst
26 $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
27 @echo "\nDocs rendered successfully, open _/build/html/index.html to view"