testing/marionette/client/docs/make.bat

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 @ECHO OFF
michael@0 2
michael@0 3 REM Command file for Sphinx documentation
michael@0 4
michael@0 5 if "%SPHINXBUILD%" == "" (
michael@0 6 set SPHINXBUILD=sphinx-build
michael@0 7 )
michael@0 8 set BUILDDIR=_build
michael@0 9 set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
michael@0 10 set I18NSPHINXOPTS=%SPHINXOPTS% .
michael@0 11 if NOT "%PAPER%" == "" (
michael@0 12 set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
michael@0 13 set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
michael@0 14 )
michael@0 15
michael@0 16 if "%1" == "" goto help
michael@0 17
michael@0 18 if "%1" == "help" (
michael@0 19 :help
michael@0 20 echo.Please use `make ^<target^>` where ^<target^> is one of
michael@0 21 echo. html to make standalone HTML files
michael@0 22 echo. dirhtml to make HTML files named index.html in directories
michael@0 23 echo. singlehtml to make a single large HTML file
michael@0 24 echo. pickle to make pickle files
michael@0 25 echo. json to make JSON files
michael@0 26 echo. htmlhelp to make HTML files and a HTML help project
michael@0 27 echo. qthelp to make HTML files and a qthelp project
michael@0 28 echo. devhelp to make HTML files and a Devhelp project
michael@0 29 echo. epub to make an epub
michael@0 30 echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
michael@0 31 echo. text to make text files
michael@0 32 echo. man to make manual pages
michael@0 33 echo. texinfo to make Texinfo files
michael@0 34 echo. gettext to make PO message catalogs
michael@0 35 echo. changes to make an overview over all changed/added/deprecated items
michael@0 36 echo. linkcheck to check all external links for integrity
michael@0 37 echo. doctest to run all doctests embedded in the documentation if enabled
michael@0 38 goto end
michael@0 39 )
michael@0 40
michael@0 41 if "%1" == "clean" (
michael@0 42 for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
michael@0 43 del /q /s %BUILDDIR%\*
michael@0 44 goto end
michael@0 45 )
michael@0 46
michael@0 47 if "%1" == "html" (
michael@0 48 %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
michael@0 49 if errorlevel 1 exit /b 1
michael@0 50 echo.
michael@0 51 echo.Build finished. The HTML pages are in %BUILDDIR%/html.
michael@0 52 goto end
michael@0 53 )
michael@0 54
michael@0 55 if "%1" == "dirhtml" (
michael@0 56 %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
michael@0 57 if errorlevel 1 exit /b 1
michael@0 58 echo.
michael@0 59 echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
michael@0 60 goto end
michael@0 61 )
michael@0 62
michael@0 63 if "%1" == "singlehtml" (
michael@0 64 %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
michael@0 65 if errorlevel 1 exit /b 1
michael@0 66 echo.
michael@0 67 echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
michael@0 68 goto end
michael@0 69 )
michael@0 70
michael@0 71 if "%1" == "pickle" (
michael@0 72 %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
michael@0 73 if errorlevel 1 exit /b 1
michael@0 74 echo.
michael@0 75 echo.Build finished; now you can process the pickle files.
michael@0 76 goto end
michael@0 77 )
michael@0 78
michael@0 79 if "%1" == "json" (
michael@0 80 %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
michael@0 81 if errorlevel 1 exit /b 1
michael@0 82 echo.
michael@0 83 echo.Build finished; now you can process the JSON files.
michael@0 84 goto end
michael@0 85 )
michael@0 86
michael@0 87 if "%1" == "htmlhelp" (
michael@0 88 %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
michael@0 89 if errorlevel 1 exit /b 1
michael@0 90 echo.
michael@0 91 echo.Build finished; now you can run HTML Help Workshop with the ^
michael@0 92 .hhp project file in %BUILDDIR%/htmlhelp.
michael@0 93 goto end
michael@0 94 )
michael@0 95
michael@0 96 if "%1" == "qthelp" (
michael@0 97 %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
michael@0 98 if errorlevel 1 exit /b 1
michael@0 99 echo.
michael@0 100 echo.Build finished; now you can run "qcollectiongenerator" with the ^
michael@0 101 .qhcp project file in %BUILDDIR%/qthelp, like this:
michael@0 102 echo.^> qcollectiongenerator %BUILDDIR%\qthelp\MarionettePythonClient.qhcp
michael@0 103 echo.To view the help file:
michael@0 104 echo.^> assistant -collectionFile %BUILDDIR%\qthelp\MarionettePythonClient.ghc
michael@0 105 goto end
michael@0 106 )
michael@0 107
michael@0 108 if "%1" == "devhelp" (
michael@0 109 %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
michael@0 110 if errorlevel 1 exit /b 1
michael@0 111 echo.
michael@0 112 echo.Build finished.
michael@0 113 goto end
michael@0 114 )
michael@0 115
michael@0 116 if "%1" == "epub" (
michael@0 117 %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
michael@0 118 if errorlevel 1 exit /b 1
michael@0 119 echo.
michael@0 120 echo.Build finished. The epub file is in %BUILDDIR%/epub.
michael@0 121 goto end
michael@0 122 )
michael@0 123
michael@0 124 if "%1" == "latex" (
michael@0 125 %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
michael@0 126 if errorlevel 1 exit /b 1
michael@0 127 echo.
michael@0 128 echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
michael@0 129 goto end
michael@0 130 )
michael@0 131
michael@0 132 if "%1" == "text" (
michael@0 133 %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
michael@0 134 if errorlevel 1 exit /b 1
michael@0 135 echo.
michael@0 136 echo.Build finished. The text files are in %BUILDDIR%/text.
michael@0 137 goto end
michael@0 138 )
michael@0 139
michael@0 140 if "%1" == "man" (
michael@0 141 %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
michael@0 142 if errorlevel 1 exit /b 1
michael@0 143 echo.
michael@0 144 echo.Build finished. The manual pages are in %BUILDDIR%/man.
michael@0 145 goto end
michael@0 146 )
michael@0 147
michael@0 148 if "%1" == "texinfo" (
michael@0 149 %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
michael@0 150 if errorlevel 1 exit /b 1
michael@0 151 echo.
michael@0 152 echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
michael@0 153 goto end
michael@0 154 )
michael@0 155
michael@0 156 if "%1" == "gettext" (
michael@0 157 %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
michael@0 158 if errorlevel 1 exit /b 1
michael@0 159 echo.
michael@0 160 echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
michael@0 161 goto end
michael@0 162 )
michael@0 163
michael@0 164 if "%1" == "changes" (
michael@0 165 %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
michael@0 166 if errorlevel 1 exit /b 1
michael@0 167 echo.
michael@0 168 echo.The overview file is in %BUILDDIR%/changes.
michael@0 169 goto end
michael@0 170 )
michael@0 171
michael@0 172 if "%1" == "linkcheck" (
michael@0 173 %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
michael@0 174 if errorlevel 1 exit /b 1
michael@0 175 echo.
michael@0 176 echo.Link check complete; look for any errors in the above output ^
michael@0 177 or in %BUILDDIR%/linkcheck/output.txt.
michael@0 178 goto end
michael@0 179 )
michael@0 180
michael@0 181 if "%1" == "doctest" (
michael@0 182 %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
michael@0 183 if errorlevel 1 exit /b 1
michael@0 184 echo.
michael@0 185 echo.Testing of doctests in the sources finished, look at the ^
michael@0 186 results in %BUILDDIR%/doctest/output.txt.
michael@0 187 goto end
michael@0 188 )
michael@0 189
michael@0 190 :end

mercurial