annotate docs/make.bat @ 475:8937b1476c42

stopped removing colon_between_username_and_password
author catherine@Drou
date Tue, 09 Mar 2010 23:27:16 -0500
parents a55e0f05f745
children
rev   line source
458
cat@eee
parents:
diff changeset
1 @ECHO OFF
cat@eee
parents:
diff changeset
2
cat@eee
parents:
diff changeset
3 REM Command file for Sphinx documentation
cat@eee
parents:
diff changeset
4
cat@eee
parents:
diff changeset
5 set SPHINXBUILD=sphinx-build
cat@eee
parents:
diff changeset
6 set BUILDDIR=build
cat@eee
parents:
diff changeset
7 set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
cat@eee
parents:
diff changeset
8 if NOT "%PAPER%" == "" (
cat@eee
parents:
diff changeset
9 set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
cat@eee
parents:
diff changeset
10 )
cat@eee
parents:
diff changeset
11
cat@eee
parents:
diff changeset
12 if "%1" == "" goto help
cat@eee
parents:
diff changeset
13
cat@eee
parents:
diff changeset
14 if "%1" == "help" (
cat@eee
parents:
diff changeset
15 :help
cat@eee
parents:
diff changeset
16 echo.Please use `make ^<target^>` where ^<target^> is one of
cat@eee
parents:
diff changeset
17 echo. html to make standalone HTML files
cat@eee
parents:
diff changeset
18 echo. dirhtml to make HTML files named index.html in directories
cat@eee
parents:
diff changeset
19 echo. pickle to make pickle files
cat@eee
parents:
diff changeset
20 echo. json to make JSON files
cat@eee
parents:
diff changeset
21 echo. htmlhelp to make HTML files and a HTML help project
cat@eee
parents:
diff changeset
22 echo. qthelp to make HTML files and a qthelp project
cat@eee
parents:
diff changeset
23 echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
cat@eee
parents:
diff changeset
24 echo. changes to make an overview over all changed/added/deprecated items
cat@eee
parents:
diff changeset
25 echo. linkcheck to check all external links for integrity
cat@eee
parents:
diff changeset
26 echo. doctest to run all doctests embedded in the documentation if enabled
cat@eee
parents:
diff changeset
27 goto end
cat@eee
parents:
diff changeset
28 )
cat@eee
parents:
diff changeset
29
cat@eee
parents:
diff changeset
30 if "%1" == "clean" (
cat@eee
parents:
diff changeset
31 for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
cat@eee
parents:
diff changeset
32 del /q /s %BUILDDIR%\*
cat@eee
parents:
diff changeset
33 goto end
cat@eee
parents:
diff changeset
34 )
cat@eee
parents:
diff changeset
35
cat@eee
parents:
diff changeset
36 if "%1" == "html" (
cat@eee
parents:
diff changeset
37 %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
cat@eee
parents:
diff changeset
38 echo.
cat@eee
parents:
diff changeset
39 echo.Build finished. The HTML pages are in %BUILDDIR%/html.
cat@eee
parents:
diff changeset
40 goto end
cat@eee
parents:
diff changeset
41 )
cat@eee
parents:
diff changeset
42
cat@eee
parents:
diff changeset
43 if "%1" == "dirhtml" (
cat@eee
parents:
diff changeset
44 %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
cat@eee
parents:
diff changeset
45 echo.
cat@eee
parents:
diff changeset
46 echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
cat@eee
parents:
diff changeset
47 goto end
cat@eee
parents:
diff changeset
48 )
cat@eee
parents:
diff changeset
49
cat@eee
parents:
diff changeset
50 if "%1" == "pickle" (
cat@eee
parents:
diff changeset
51 %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
cat@eee
parents:
diff changeset
52 echo.
cat@eee
parents:
diff changeset
53 echo.Build finished; now you can process the pickle files.
cat@eee
parents:
diff changeset
54 goto end
cat@eee
parents:
diff changeset
55 )
cat@eee
parents:
diff changeset
56
cat@eee
parents:
diff changeset
57 if "%1" == "json" (
cat@eee
parents:
diff changeset
58 %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
cat@eee
parents:
diff changeset
59 echo.
cat@eee
parents:
diff changeset
60 echo.Build finished; now you can process the JSON files.
cat@eee
parents:
diff changeset
61 goto end
cat@eee
parents:
diff changeset
62 )
cat@eee
parents:
diff changeset
63
cat@eee
parents:
diff changeset
64 if "%1" == "htmlhelp" (
cat@eee
parents:
diff changeset
65 %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
cat@eee
parents:
diff changeset
66 echo.
cat@eee
parents:
diff changeset
67 echo.Build finished; now you can run HTML Help Workshop with the ^
cat@eee
parents:
diff changeset
68 .hhp project file in %BUILDDIR%/htmlhelp.
cat@eee
parents:
diff changeset
69 goto end
cat@eee
parents:
diff changeset
70 )
cat@eee
parents:
diff changeset
71
cat@eee
parents:
diff changeset
72 if "%1" == "qthelp" (
cat@eee
parents:
diff changeset
73 %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
cat@eee
parents:
diff changeset
74 echo.
cat@eee
parents:
diff changeset
75 echo.Build finished; now you can run "qcollectiongenerator" with the ^
cat@eee
parents:
diff changeset
76 .qhcp project file in %BUILDDIR%/qthelp, like this:
cat@eee
parents:
diff changeset
77 echo.^> qcollectiongenerator %BUILDDIR%\qthelp\sqlpython.qhcp
cat@eee
parents:
diff changeset
78 echo.To view the help file:
cat@eee
parents:
diff changeset
79 echo.^> assistant -collectionFile %BUILDDIR%\qthelp\sqlpython.ghc
cat@eee
parents:
diff changeset
80 goto end
cat@eee
parents:
diff changeset
81 )
cat@eee
parents:
diff changeset
82
cat@eee
parents:
diff changeset
83 if "%1" == "latex" (
cat@eee
parents:
diff changeset
84 %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
cat@eee
parents:
diff changeset
85 echo.
cat@eee
parents:
diff changeset
86 echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
cat@eee
parents:
diff changeset
87 goto end
cat@eee
parents:
diff changeset
88 )
cat@eee
parents:
diff changeset
89
cat@eee
parents:
diff changeset
90 if "%1" == "changes" (
cat@eee
parents:
diff changeset
91 %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
cat@eee
parents:
diff changeset
92 echo.
cat@eee
parents:
diff changeset
93 echo.The overview file is in %BUILDDIR%/changes.
cat@eee
parents:
diff changeset
94 goto end
cat@eee
parents:
diff changeset
95 )
cat@eee
parents:
diff changeset
96
cat@eee
parents:
diff changeset
97 if "%1" == "linkcheck" (
cat@eee
parents:
diff changeset
98 %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
cat@eee
parents:
diff changeset
99 echo.
cat@eee
parents:
diff changeset
100 echo.Link check complete; look for any errors in the above output ^
cat@eee
parents:
diff changeset
101 or in %BUILDDIR%/linkcheck/output.txt.
cat@eee
parents:
diff changeset
102 goto end
cat@eee
parents:
diff changeset
103 )
cat@eee
parents:
diff changeset
104
cat@eee
parents:
diff changeset
105 if "%1" == "doctest" (
cat@eee
parents:
diff changeset
106 %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
cat@eee
parents:
diff changeset
107 echo.
cat@eee
parents:
diff changeset
108 echo.Testing of doctests in the sources finished, look at the ^
cat@eee
parents:
diff changeset
109 results in %BUILDDIR%/doctest/output.txt.
cat@eee
parents:
diff changeset
110 goto end
cat@eee
parents:
diff changeset
111 )
cat@eee
parents:
diff changeset
112
cat@eee
parents:
diff changeset
113 :end