1- # Makefile for Deis documentation
1+ # Makefile for Sphinx documentation
22#
33
44# You can set these variables from the command line.
55SPHINXOPTS =
66SPHINXBUILD = sphinx-build
77PAPER =
88PYTHON = python
9- BUILDDIR = build
9+ BUILDDIR = _build
1010
1111# User-friendly check for sphinx-build
1212ifeq ($(shell which $(SPHINXBUILD ) >/dev/null 2>&1; echo $$? ) , 1)
@@ -16,50 +16,40 @@ endif
1616# Internal variables.
1717PAPEROPT_a4 = -D latex_paper_size=a4
1818PAPEROPT_letter = -D latex_paper_size=letter
19- ALLSPHINXOPTS = -d $(BUILDDIR ) /doctrees $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS ) source
19+ ALLSPHINXOPTS = -d $(BUILDDIR ) /doctrees $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS ) .
2020# the i18n builder cannot share the environment and doctrees with the others
21- I18NSPHINXOPTS = $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS ) source
21+ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS ) .
2222
2323.PHONY : help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
2424
25- docs :
26- $(SPHINXBUILD ) -b dirhtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
27- @echo
28- @echo " Build finished. The documentation pages are now in $( BUILDDIR) /html."
29-
3025help :
3126 @echo " Please use \` make <target>' where <target> is one of"
32- # @echo " html to make standalone HTML files"
33- # @echo " dirhtml to make HTML files named index.html in directories"
34- # @echo " singlehtml to make a single large HTML file"
35- # @echo " pickle to make pickle files"
36- # @echo " json to make JSON files"
37- # @echo " htmlhelp to make HTML files and a HTML help project"
38- # @echo " qthelp to make HTML files and a qthelp project"
39- # @echo " devhelp to make HTML files and a Devhelp project"
40- # @echo " epub to make an epub"
41- # @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
42- # @echo " latexpdf to make LaTeX files and run them through pdflatex"
43- # @echo " text to make text files"
44- # @echo " man to make manual pages"
45- # @echo " texinfo to make Texinfo files"
46- # @echo " info to make Texinfo files and run them through makeinfo"
47- # @echo " gettext to make PO message catalogs"
48- # @echo " changes to make an overview of all changed/added/deprecated items"
49- # @echo " linkcheck to check all external links for integrity"
50- # @echo " doctest to run all doctests embedded in the documentation (if enabled)"
51- @echo " docs to build the docs and copy the static files to the outputdir"
52- @echo " server to serve the docs in your browser under \`http://localhost:8000\`"
53- @echo " publish to publish the app to deis.io"
54-
55- publish :
56- @echo " Coming soon..."
57-
58- server : docs
59- @cd $(BUILDDIR ) /html; $(PYTHON ) -m SimpleHTTPServer 8000
27+ @echo " html to make standalone HTML files"
28+ @echo " dirhtml to make HTML files named index.html in directories"
29+ @echo " server to make dirhtml as above, then serve it at http://0.0.0.0:8000/"
30+ @echo " singlehtml to make a single large HTML file"
31+ @echo " pickle to make pickle files"
32+ @echo " json to make JSON files"
33+ @echo " htmlhelp to make HTML files and a HTML help project"
34+ @echo " qthelp to make HTML files and a qthelp project"
35+ @echo " devhelp to make HTML files and a Devhelp project"
36+ @echo " epub to make an epub"
37+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
38+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
39+ @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
40+ @echo " text to make text files"
41+ @echo " man to make manual pages"
42+ @echo " texinfo to make Texinfo files"
43+ @echo " info to make Texinfo files and run them through makeinfo"
44+ @echo " gettext to make PO message catalogs"
45+ @echo " changes to make an overview of all changed/added/deprecated items"
46+ @echo " xml to make Docutils-native XML files"
47+ @echo " pseudoxml to make pseudoxml-XML files for display purposes"
48+ @echo " linkcheck to check all external links for integrity"
49+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
6050
6151clean :
62- rm -rf $(BUILDDIR )
52+ rm -rf $(BUILDDIR ) / *
6353
6454html :
6555 $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
@@ -97,17 +87,17 @@ qthelp:
9787 @echo
9888 @echo " Build finished; now you can run " qcollectiongenerator" with the" \
9989 " .qhcp project file in $( BUILDDIR) /qthelp, like this:"
100- @echo " # qcollectiongenerator $( BUILDDIR) /qthelp/Docker .qhcp"
90+ @echo " # qcollectiongenerator $( BUILDDIR) /qthelp/deis .qhcp"
10191 @echo " To view the help file:"
102- @echo " # assistant -collectionFile $( BUILDDIR) /qthelp/Docker .qhc"
92+ @echo " # assistant -collectionFile $( BUILDDIR) /qthelp/deis .qhc"
10393
10494devhelp :
10595 $(SPHINXBUILD ) -b devhelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /devhelp
10696 @echo
10797 @echo " Build finished."
10898 @echo " To view the help file:"
109- @echo " # mkdir -p $$ HOME/.local/share/devhelp/Docker "
110- @echo " # ln -s $( BUILDDIR) /devhelp $$ HOME/.local/share/devhelp/Docker "
99+ @echo " # mkdir -p $$ HOME/.local/share/devhelp/deis "
100+ @echo " # ln -s $( BUILDDIR) /devhelp $$ HOME/.local/share/devhelp/deis "
111101 @echo " # devhelp"
112102
113103epub :
@@ -128,6 +118,12 @@ latexpdf:
128118 $(MAKE ) -C $(BUILDDIR ) /latex all-pdf
129119 @echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
130120
121+ latexpdfja :
122+ $(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
123+ @echo " Running LaTeX files through platex and dvipdfmx..."
124+ $(MAKE ) -C $(BUILDDIR ) /latex all-pdf-ja
125+ @echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
126+
131127text :
132128 $(SPHINXBUILD ) -b text $(ALLSPHINXOPTS ) $(BUILDDIR ) /text
133129 @echo
@@ -171,3 +167,16 @@ doctest:
171167 $(SPHINXBUILD ) -b doctest $(ALLSPHINXOPTS ) $(BUILDDIR ) /doctest
172168 @echo " Testing of doctests in the sources finished, look at the " \
173169 " results in $( BUILDDIR) /doctest/output.txt."
170+
171+ xml :
172+ $(SPHINXBUILD ) -b xml $(ALLSPHINXOPTS ) $(BUILDDIR ) /xml
173+ @echo
174+ @echo " Build finished. The XML files are in $( BUILDDIR) /xml."
175+
176+ pseudoxml :
177+ $(SPHINXBUILD ) -b pseudoxml $(ALLSPHINXOPTS ) $(BUILDDIR ) /pseudoxml
178+ @echo
179+ @echo " Build finished. The pseudo-XML files are in $( BUILDDIR) /pseudoxml."
180+
181+ server : dirhtml
182+ @cd $(BUILDDIR ) /dirhtml; $(PYTHON ) -m SimpleHTTPServer 8000
0 commit comments