Zine

open source content publishing system


source: api/Makefile @ 863:3e78b3b6e812

Revision 863:3e78b3b6e812, 3.0 KB checked in by mitsuhiko, 3 years ago (diff)

Created system for documentation.

Line 
1# Makefile for Sphinx documentation
2#
3
4# You can set these variables from the command line.
5SPHINXOPTS    =
6SPHINXBUILD   = sphinx-build
7PAPER         =
8
9# Internal variables.
10PAPEROPT_a4     = -D latex_paper_size=a4
11PAPEROPT_letter = -D latex_paper_size=letter
12ALLSPHINXOPTS   = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
13
14.PHONY: help clean html pickle json htmlhelp qthelp latex changes linkcheck
15
16help:
17        @echo "Please use \`make <target>' where <target> is one of"
18        @echo "  html      to make standalone HTML files"
19        @echo "  pickle    to make pickle files"
20        @echo "  webpickle to make pickle files for the website"
21        @echo "  json      to make JSON files"
22        @echo "  htmlhelp  to make HTML files and a HTML help project"
23        @echo "  qthelp    to make HTML files and a qthelp project"
24        @echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
25        @echo "  changes   to make an overview over all changed/added/deprecated items"
26        @echo "  linkcheck to check all external links for integrity"
27
28clean:
29        -rm -rf _build/*
30
31html:
32        mkdir -p _build/html _build/doctrees
33        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
34        @echo
35        @echo "Build finished. The HTML pages are in _build/html."
36
37pickle:
38        mkdir -p _build/pickle _build/doctrees
39        $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
40        @echo
41        @echo "Build finished; now you can process the pickle files."
42
43webpickle:
44        mkdir -p _build/webpickle _build/doctrees
45        $(SPHINXBUILD) -b webpickle $(ALLSPHINXOPTS) _build/webpickle
46        @echo
47        @echo "Build finished; now you can process the website pickle files."
48
49json:
50        mkdir -p _build/json _build/doctrees
51        $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json
52        @echo
53        @echo "Build finished; now you can process the JSON files."
54
55htmlhelp:
56        mkdir -p _build/htmlhelp _build/doctrees
57        $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
58        @echo
59        @echo "Build finished; now you can run HTML Help Workshop with the" \
60              ".hhp project file in _build/htmlhelp."
61
62qthelp:
63        mkdir -p _build/qthelp _build/doctrees
64        $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) _build/qthelp
65        @echo
66        @echo "Build finished; now you can run "qcollectiongenerator" with the" \
67              ".qhcp project file in _build/qthelp, like this:"
68        @echo "# qcollectiongenerator _build/qthelp/Sphinx.qhcp"
69        @echo "To view the help file:"
70        @echo "# assistant -collectionFile _build/qthelp/Zine.qhc"
71
72latex:
73        mkdir -p _build/latex _build/doctrees
74        $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
75        @echo
76        @echo "Build finished; the LaTeX files are in _build/latex."
77        @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
78              "run these through (pdf)latex."
79
80changes:
81        mkdir -p _build/changes _build/doctrees
82        $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
83        @echo
84        @echo "The overview file is in _build/changes."
85
86linkcheck:
87        mkdir -p _build/linkcheck _build/doctrees
88        $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
89        @echo
90        @echo "Link check complete; look for any errors in the above output " \
91              "or in _build/linkcheck/output.txt."
Note: See TracBrowser for help on using the repository browser.