##// END OF EJS Templates
make: updated docs make commands.
marcink -
r1214:493a5c1f default
parent child Browse files
Show More
@@ -1,39 +1,42 b''
1 1
2 2 WEBPACK=./node_modules/webpack/bin/webpack.js
3 3 GRUNT=grunt
4 4 NODE_PATH=./node_modules
5 5 CI_PREFIX=enterprise
6 6
7 7 .PHONY: docs docs-clean ci-docs clean test test-clean test-lint test-only
8 8
9 9
10 10 docs:
11 11 (cd docs; nix-build default.nix -o result; make clean html)
12 12
13 13 docs-clean:
14 14 (cd docs; make clean)
15 15
16 docs-cleanup:
17 (cd docs; make cleanup)
18
16 19 ci-docs: docs;
17 20
18 21
19 22 clean: test-clean
20 23 find . -type f \( -iname '*.c' -o -iname '*.pyc' -o -iname '*.so' \) -exec rm '{}' ';'
21 24
22 25 test: test-clean test-only
23 26
24 27 test-clean:
25 28 rm -rf coverage.xml htmlcov junit.xml pylint.log result
26 29
27 30 test-only:
28 31 PYTHONHASHSEED=random py.test -vv -r xw --cov=rhodecode --cov-report=term-missing --cov-report=html rhodecode/tests/
29 32
30 33 web-build:
31 34 NODE_PATH=$(NODE_PATH) $(GRUNT)
32 35
33 36 web-test:
34 37 @echo "no test for our javascript, yet!"
35 38
36 39 docs-bootstrap:
37 40 (cd docs; nix-build default.nix -o result)
38 41 @echo "Please go to docs folder and run make html"
39 42
@@ -1,177 +1,183 b''
1 1 # Makefile for Sphinx documentation
2 2 #
3 3
4 4 # You can set these variables from the command line.
5 5 SPHINXOPTS =
6 6 SPHINXBUILD = ./result/bin/sphinx-build
7 7 PAPER =
8 8 BUILDDIR = _build
9 9
10 10 # User-friendly check for sphinx-build
11 11 ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12 12 $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13 13 endif
14 14
15 15 # Internal variables.
16 16 PAPEROPT_a4 = -D latex_paper_size=a4
17 17 PAPEROPT_letter = -D latex_paper_size=letter
18 18 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
19 19 # the i18n builder cannot share the environment and doctrees with the others
20 20 I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
21 21
22 22 .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
23 23
24 24 help:
25 25 @echo "Please use \`make <target>' where <target> is one of"
26 26 @echo " html to make standalone HTML files"
27 27 @echo " dirhtml to make HTML files named index.html in directories"
28 28 @echo " singlehtml to make a single large HTML file"
29 29 @echo " pickle to make pickle files"
30 30 @echo " json to make JSON files"
31 31 @echo " htmlhelp to make HTML files and a HTML help project"
32 32 @echo " qthelp to make HTML files and a qthelp project"
33 33 @echo " devhelp to make HTML files and a Devhelp project"
34 34 @echo " epub to make an epub"
35 35 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
36 36 @echo " latexpdf to make LaTeX files and run them through pdflatex"
37 37 @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
38 38 @echo " text to make text files"
39 39 @echo " man to make manual pages"
40 40 @echo " texinfo to make Texinfo files"
41 41 @echo " info to make Texinfo files and run them through makeinfo"
42 42 @echo " gettext to make PO message catalogs"
43 43 @echo " changes to make an overview of all changed/added/deprecated items"
44 44 @echo " xml to make Docutils-native XML files"
45 45 @echo " pseudoxml to make pseudoxml-XML files for display purposes"
46 46 @echo " linkcheck to check all external links for integrity"
47 47 @echo " doctest to run all doctests embedded in the documentation (if enabled)"
48 48
49 49 clean:
50 50 rm -rf $(BUILDDIR)/*
51 51
52 cleanup:
53 @echo "cleaning build dir"
54 rm -rf $(BUILDDIR)/*
55 @echo "cleaning result symlink"
56 rm -v result
57
52 58 html:
53 59 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
54 60 @echo
55 61 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
56 62
57 63 dirhtml:
58 64 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
59 65 @echo
60 66 @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
61 67
62 68 singlehtml:
63 69 $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
64 70 @echo
65 71 @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
66 72
67 73 pickle:
68 74 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
69 75 @echo
70 76 @echo "Build finished; now you can process the pickle files."
71 77
72 78 json:
73 79 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
74 80 @echo
75 81 @echo "Build finished; now you can process the JSON files."
76 82
77 83 htmlhelp:
78 84 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
79 85 @echo
80 86 @echo "Build finished; now you can run HTML Help Workshop with the" \
81 87 ".hhp project file in $(BUILDDIR)/htmlhelp."
82 88
83 89 qthelp:
84 90 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
85 91 @echo
86 92 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
87 93 ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
88 94 @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/RhodeCodeInstaller.qhcp"
89 95 @echo "To view the help file:"
90 96 @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/RhodeCodeInstaller.qhc"
91 97
92 98 devhelp:
93 99 $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
94 100 @echo
95 101 @echo "Build finished."
96 102 @echo "To view the help file:"
97 103 @echo "# mkdir -p $$HOME/.local/share/devhelp/RhodeCodeInstaller"
98 104 @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/RhodeCodeInstaller"
99 105 @echo "# devhelp"
100 106
101 107 epub:
102 108 $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
103 109 @echo
104 110 @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
105 111
106 112 latex:
107 113 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
108 114 @echo
109 115 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
110 116 @echo "Run \`make' in that directory to run these through (pdf)latex" \
111 117 "(use \`make latexpdf' here to do that automatically)."
112 118
113 119 latexpdf:
114 120 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
115 121 @echo "Running LaTeX files through pdflatex..."
116 122 $(MAKE) -C $(BUILDDIR)/latex all-pdf
117 123 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
118 124
119 125 latexpdfja:
120 126 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
121 127 @echo "Running LaTeX files through platex and dvipdfmx..."
122 128 $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
123 129 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
124 130
125 131 text:
126 132 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
127 133 @echo
128 134 @echo "Build finished. The text files are in $(BUILDDIR)/text."
129 135
130 136 man:
131 137 $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
132 138 @echo
133 139 @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
134 140
135 141 texinfo:
136 142 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
137 143 @echo
138 144 @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
139 145 @echo "Run \`make' in that directory to run these through makeinfo" \
140 146 "(use \`make info' here to do that automatically)."
141 147
142 148 info:
143 149 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
144 150 @echo "Running Texinfo files through makeinfo..."
145 151 make -C $(BUILDDIR)/texinfo info
146 152 @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
147 153
148 154 gettext:
149 155 $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
150 156 @echo
151 157 @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
152 158
153 159 changes:
154 160 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
155 161 @echo
156 162 @echo "The overview file is in $(BUILDDIR)/changes."
157 163
158 164 linkcheck:
159 165 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
160 166 @echo
161 167 @echo "Link check complete; look for any errors in the above output " \
162 168 "or in $(BUILDDIR)/linkcheck/output.txt."
163 169
164 170 doctest:
165 171 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
166 172 @echo "Testing of doctests in the sources finished, look at the " \
167 173 "results in $(BUILDDIR)/doctest/output.txt."
168 174
169 175 xml:
170 176 $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
171 177 @echo
172 178 @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
173 179
174 180 pseudoxml:
175 181 $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
176 182 @echo
177 183 @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
General Comments 0
You need to be logged in to leave comments. Login now