Skip to content
Myr

make.bat

This file

Path

docs/make.bat

139 lines · 3.6 KiB

Last changed by

Not known.

History of this file

Take it

1@ECHO OFF23REM Command file for Sphinx documentation45if "%SPHINXBUILD%" == "" (6	set SPHINXBUILD=sphinx-build7)8set BUILDDIR=_build9set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .10if NOT "%PAPER%" == "" (11	set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%12)1314if "%1" == "" goto help1516if "%1" == "help" (17	:help18	echo.Please use `make ^<target^>` where ^<target^> is one of19	echo.  html       to make standalone HTML files20	echo.  dirhtml    to make HTML files named index.html in directories21	echo.  singlehtml to make a single large HTML file22	echo.  pickle     to make pickle files23	echo.  json       to make JSON files24	echo.  htmlhelp   to make HTML files and a HTML help project25	echo.  qthelp     to make HTML files and a qthelp project26	echo.  devhelp    to make HTML files and a Devhelp project27	echo.  epub       to make an epub28	echo.  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter29	echo.  changes    to make an overview over all changed/added/deprecated items30	echo.  linkcheck  to check all external links for integrity31	echo.  doctest    to run all doctests embedded in the documentation if enabled32	goto end33)3435if "%1" == "clean" (36	for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i37	del /q /s %BUILDDIR%\*38	goto end39)4041if "%1" == "html" (42	%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html43	echo.44	echo.Build finished. The HTML pages are in %BUILDDIR%/html.45	goto end46)4748if "%1" == "dirhtml" (49	%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml50	echo.51	echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.52	goto end53)5455if "%1" == "singlehtml" (56	%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml57	echo.58	echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.59	goto end60)6162if "%1" == "pickle" (63	%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle64	echo.65	echo.Build finished; now you can process the pickle files.66	goto end67)6869if "%1" == "json" (70	%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json71	echo.72	echo.Build finished; now you can process the JSON files.73	goto end74)7576if "%1" == "htmlhelp" (77	%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp78	echo.79	echo.Build finished; now you can run HTML Help Workshop with the ^80.hhp project file in %BUILDDIR%/htmlhelp.81	goto end82)8384if "%1" == "qthelp" (85	%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp86	echo.87	echo.Build finished; now you can run "qcollectiongenerator" with the ^88.qhcp project file in %BUILDDIR%/qthelp, like this:89	echo.^> qcollectiongenerator %BUILDDIR%\qthelp\Flask.qhcp90	echo.To view the help file:91	echo.^> assistant -collectionFile %BUILDDIR%\qthelp\Flask.ghc92	goto end93)9495if "%1" == "devhelp" (96	%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% _build/devhelp97	echo.98	echo.Build finished.99	goto end100)101102if "%1" == "epub" (103	%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub104	echo.105	echo.Build finished. The epub file is in %BUILDDIR%/epub.106	goto end107)108109if "%1" == "latex" (110	%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex111	echo.112	echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.113	goto end114)115116if "%1" == "changes" (117	%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes118	echo.119	echo.The overview file is in %BUILDDIR%/changes.120	goto end121)122123if "%1" == "linkcheck" (124	%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck125	echo.126	echo.Link check complete; look for any errors in the above output ^127or in %BUILDDIR%/linkcheck/output.txt.128	goto end129)130131if "%1" == "doctest" (132	%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest133	echo.134	echo.Testing of doctests in the sources finished, look at the ^135results in %BUILDDIR%/doctest/output.txt.136	goto end137)138139:end