Sphinx 7.4.7__py3-none-any.whl → 8.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of Sphinx might be problematic. Click here for more details.
- sphinx/__init__.py +2 -2
- sphinx/_cli/__init__.py +4 -4
- sphinx/application.py +2 -2
- sphinx/builders/__init__.py +2 -3
- sphinx/builders/_epub_base.py +33 -12
- sphinx/builders/changes.py +13 -5
- sphinx/builders/epub3.py +6 -2
- sphinx/builders/html/__init__.py +88 -58
- sphinx/builders/latex/__init__.py +38 -12
- sphinx/builders/latex/transforms.py +1 -1
- sphinx/builders/linkcheck.py +8 -49
- sphinx/builders/texinfo.py +12 -6
- sphinx/builders/text.py +7 -3
- sphinx/builders/xml.py +7 -3
- sphinx/cmd/quickstart.py +10 -20
- sphinx/config.py +13 -13
- sphinx/deprecation.py +8 -8
- sphinx/directives/other.py +2 -3
- sphinx/directives/patches.py +2 -2
- sphinx/domains/__init__.py +4 -2
- sphinx/domains/c/__init__.py +2 -2
- sphinx/domains/c/_ast.py +3 -2
- sphinx/domains/c/_parser.py +4 -3
- sphinx/domains/cpp/__init__.py +2 -2
- sphinx/domains/cpp/_ast.py +1 -2
- sphinx/domains/cpp/_parser.py +2 -2
- sphinx/domains/cpp/_symbol.py +2 -2
- sphinx/domains/math.py +1 -1
- sphinx/domains/python/_object.py +0 -1
- sphinx/domains/std/__init__.py +7 -8
- sphinx/environment/__init__.py +15 -32
- sphinx/environment/adapters/indexentries.py +4 -6
- sphinx/environment/adapters/toctree.py +4 -4
- sphinx/environment/collectors/title.py +1 -1
- sphinx/environment/collectors/toctree.py +1 -1
- sphinx/events.py +3 -1
- sphinx/ext/autodoc/__init__.py +17 -63
- sphinx/ext/autodoc/directive.py +7 -5
- sphinx/ext/autodoc/importer.py +2 -1
- sphinx/ext/autodoc/preserve_defaults.py +2 -2
- sphinx/ext/autosummary/__init__.py +7 -6
- sphinx/ext/autosummary/generate.py +5 -4
- sphinx/ext/doctest.py +5 -5
- sphinx/ext/graphviz.py +1 -1
- sphinx/ext/imgmath.py +1 -1
- sphinx/ext/inheritance_diagram.py +1 -1
- sphinx/ext/intersphinx/__init__.py +25 -5
- sphinx/ext/intersphinx/_cli.py +7 -6
- sphinx/ext/intersphinx/_load.py +240 -115
- sphinx/ext/intersphinx/_resolve.py +12 -11
- sphinx/ext/intersphinx/_shared.py +102 -9
- sphinx/ext/mathjax.py +1 -1
- sphinx/ext/napoleon/docstring.py +2 -2
- sphinx/ext/todo.py +2 -2
- sphinx/ext/viewcode.py +2 -1
- sphinx/highlighting.py +3 -3
- sphinx/io.py +2 -2
- sphinx/jinja2glue.py +13 -6
- sphinx/locale/__init__.py +4 -3
- sphinx/locale/ar/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/ar/LC_MESSAGES/sphinx.po +2383 -2186
- sphinx/locale/bg/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/bg/LC_MESSAGES/sphinx.po +2249 -2052
- sphinx/locale/bn/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/bn/LC_MESSAGES/sphinx.po +2412 -2215
- sphinx/locale/ca/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/ca/LC_MESSAGES/sphinx.po +3029 -2832
- sphinx/locale/cak/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/cak/LC_MESSAGES/sphinx.po +2308 -2111
- sphinx/locale/cs/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/cs/LC_MESSAGES/sphinx.po +2469 -2272
- sphinx/locale/cy/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/cy/LC_MESSAGES/sphinx.po +2393 -2196
- sphinx/locale/da/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/da/LC_MESSAGES/sphinx.po +2532 -2335
- sphinx/locale/de/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/de/LC_MESSAGES/sphinx.po +2492 -2295
- sphinx/locale/de_DE/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/de_DE/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/el/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/el/LC_MESSAGES/sphinx.po +2879 -2682
- sphinx/locale/en_DE/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/en_DE/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/en_FR/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/en_FR/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/en_GB/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/en_GB/LC_MESSAGES/sphinx.po +2989 -2792
- sphinx/locale/en_HK/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/en_HK/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/eo/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/eo/LC_MESSAGES/sphinx.po +2297 -2100
- sphinx/locale/es/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/es/LC_MESSAGES/sphinx.po +3017 -2820
- sphinx/locale/es_CO/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/es_CO/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/et/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/et/LC_MESSAGES/sphinx.po +2748 -2551
- sphinx/locale/eu/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/eu/LC_MESSAGES/sphinx.po +2459 -2262
- sphinx/locale/fa/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/fa/LC_MESSAGES/sphinx.po +2957 -2760
- sphinx/locale/fi/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/fi/LC_MESSAGES/sphinx.po +2321 -2124
- sphinx/locale/fr/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/fr/LC_MESSAGES/sphinx.po +2977 -2780
- sphinx/locale/fr_FR/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/fr_FR/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/gl/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/gl/LC_MESSAGES/sphinx.po +2992 -2795
- sphinx/locale/he/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/he/LC_MESSAGES/sphinx.po +2375 -2178
- sphinx/locale/hi/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/hi/LC_MESSAGES/sphinx.po +2937 -2740
- sphinx/locale/hi_IN/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/hi_IN/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/hr/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/hr/LC_MESSAGES/sphinx.po +2532 -2335
- sphinx/locale/hu/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/hu/LC_MESSAGES/sphinx.po +2505 -2308
- sphinx/locale/id/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/id/LC_MESSAGES/sphinx.po +2925 -2728
- sphinx/locale/is/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/is/LC_MESSAGES/sphinx.po +2307 -2110
- sphinx/locale/it/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/it/LC_MESSAGES/sphinx.po +2514 -2317
- sphinx/locale/ja/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/ja/LC_MESSAGES/sphinx.po +2970 -2773
- sphinx/locale/ka/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/ka/LC_MESSAGES/sphinx.po +2868 -2671
- sphinx/locale/ko/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/ko/LC_MESSAGES/sphinx.po +3016 -2819
- sphinx/locale/lt/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/lt/LC_MESSAGES/sphinx.po +2476 -2279
- sphinx/locale/lv/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/lv/LC_MESSAGES/sphinx.po +2477 -2280
- sphinx/locale/mk/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/mk/LC_MESSAGES/sphinx.po +2292 -2095
- sphinx/locale/nb_NO/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/nb_NO/LC_MESSAGES/sphinx.po +2479 -2282
- sphinx/locale/ne/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/ne/LC_MESSAGES/sphinx.po +2481 -2284
- sphinx/locale/nl/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/nl/LC_MESSAGES/sphinx.po +2557 -2360
- sphinx/locale/pl/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/pl/LC_MESSAGES/sphinx.po +2696 -2499
- sphinx/locale/pt/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/pt/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/pt_BR/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/pt_BR/LC_MESSAGES/sphinx.po +2979 -2782
- sphinx/locale/pt_PT/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/pt_PT/LC_MESSAGES/sphinx.po +2469 -2272
- sphinx/locale/ro/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/ro/LC_MESSAGES/sphinx.po +2473 -2276
- sphinx/locale/ru/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/ru/LC_MESSAGES/sphinx.po +2746 -2549
- sphinx/locale/si/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/si/LC_MESSAGES/sphinx.po +2331 -2134
- sphinx/locale/sk/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/sk/LC_MESSAGES/sphinx.po +2966 -2769
- sphinx/locale/sl/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/sl/LC_MESSAGES/sphinx.po +2404 -2207
- sphinx/locale/sphinx.pot +2262 -2065
- sphinx/locale/sq/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/sq/LC_MESSAGES/sphinx.po +2972 -2775
- sphinx/locale/sr/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/sr/LC_MESSAGES/sphinx.po +2440 -2243
- sphinx/locale/sv/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/sv/LC_MESSAGES/sphinx.po +2483 -2286
- sphinx/locale/te/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/te/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/tr/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/tr/LC_MESSAGES/sphinx.po +2892 -2695
- sphinx/locale/uk_UA/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/uk_UA/LC_MESSAGES/sphinx.po +2400 -2203
- sphinx/locale/ur/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/ur/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/vi/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/vi/LC_MESSAGES/sphinx.po +2422 -2225
- sphinx/locale/yue/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/yue/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/zh_HK/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/zh_HK/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/locale/zh_TW/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/zh_TW/LC_MESSAGES/sphinx.po +3028 -2831
- sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.mo +0 -0
- sphinx/locale/zh_TW.Big5/LC_MESSAGES/sphinx.po +2250 -2053
- sphinx/project.py +25 -20
- sphinx/pycode/ast.py +2 -2
- sphinx/pycode/parser.py +2 -2
- sphinx/pygments_styles.py +3 -3
- sphinx/registry.py +3 -8
- sphinx/search/__init__.py +1 -1
- sphinx/testing/path.py +2 -1
- sphinx/testing/util.py +1 -1
- sphinx/texinputs/Makefile.jinja +2 -1
- sphinx/texinputs_win/Makefile.jinja +2 -1
- sphinx/theming.py +3 -12
- sphinx/transforms/__init__.py +5 -5
- sphinx/transforms/references.py +1 -1
- sphinx/util/__init__.py +11 -35
- sphinx/util/_pathlib.py +31 -19
- sphinx/util/_timestamps.py +12 -0
- sphinx/util/cfamily.py +5 -5
- sphinx/util/console.py +4 -3
- sphinx/util/display.py +3 -3
- sphinx/util/docfields.py +1 -1
- sphinx/util/docutils.py +44 -10
- sphinx/util/fileutil.py +25 -20
- sphinx/util/i18n.py +9 -4
- sphinx/util/images.py +3 -2
- sphinx/util/inspect.py +28 -43
- sphinx/util/inventory.py +2 -2
- sphinx/util/matching.py +2 -2
- sphinx/util/math.py +1 -1
- sphinx/util/nodes.py +8 -8
- sphinx/util/osutil.py +36 -32
- sphinx/util/parallel.py +2 -2
- sphinx/util/requests.py +1 -1
- sphinx/util/template.py +3 -3
- sphinx/util/typing.py +36 -72
- sphinx/writers/html.py +1 -1
- sphinx/writers/html5.py +1 -1
- sphinx/writers/latex.py +4 -4
- sphinx/writers/manpage.py +2 -2
- sphinx/writers/texinfo.py +5 -5
- sphinx/writers/text.py +4 -4
- sphinx/writers/xml.py +2 -2
- {sphinx-7.4.7.dist-info → sphinx-8.0.0.dist-info}/METADATA +11 -10
- {sphinx-7.4.7.dist-info → sphinx-8.0.0.dist-info}/RECORD +232 -233
- sphinx/templates/quickstart/Makefile.jinja +0 -98
- sphinx/templates/quickstart/make.bat.jinja +0 -110
- {sphinx-7.4.7.dist-info → sphinx-8.0.0.dist-info}/LICENSE.rst +0 -0
- {sphinx-7.4.7.dist-info → sphinx-8.0.0.dist-info}/WHEEL +0 -0
- {sphinx-7.4.7.dist-info → sphinx-8.0.0.dist-info}/entry_points.txt +0 -0
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# Makefile for Sphinx documentation
|
|
2
|
-
#
|
|
3
|
-
|
|
4
|
-
# You can set these variables from the command line.
|
|
5
|
-
SPHINXOPTS ?=
|
|
6
|
-
SPHINXBUILD ?= sphinx-build
|
|
7
|
-
PAPER ?=
|
|
8
|
-
SOURCEDIR = {{ rsrcdir }}
|
|
9
|
-
BUILDDIR = {{ rbuilddir }}
|
|
10
|
-
|
|
11
|
-
# Internal variables.
|
|
12
|
-
PAPEROPT_a4 = -D latex_elements.papersize=a4paper
|
|
13
|
-
PAPEROPT_letter = -D latex_elements.papersize=letterpaper
|
|
14
|
-
# $(O) is meant as a shortcut for $(SPHINXOPTS)
|
|
15
|
-
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(O) $(SOURCEDIR)
|
|
16
|
-
# the i18n builder cannot share the environment and doctrees with the others
|
|
17
|
-
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(O) $(SOURCEDIR)
|
|
18
|
-
|
|
19
|
-
.PHONY: help
|
|
20
|
-
help:
|
|
21
|
-
@echo "Please use \`make <target>' where <target> is one of"
|
|
22
|
-
@echo " html to make standalone HTML files"
|
|
23
|
-
@echo " dirhtml to make HTML files named index.html in directories"
|
|
24
|
-
@echo " singlehtml to make a single large HTML file"
|
|
25
|
-
@echo " pickle to make pickle files"
|
|
26
|
-
@echo " json to make JSON files"
|
|
27
|
-
@echo " htmlhelp to make HTML files and an HTML help project"
|
|
28
|
-
@echo " qthelp to make HTML files and a qthelp project"
|
|
29
|
-
@echo " applehelp to make an Apple Help Book"
|
|
30
|
-
@echo " devhelp to make HTML files and a Devhelp project"
|
|
31
|
-
@echo " epub to make an epub"
|
|
32
|
-
@echo " latex to make LaTeX files (you can set PAPER=a4 or PAPER=letter)"
|
|
33
|
-
@echo " latexpdf to make LaTeX files and then PDFs out of them"
|
|
34
|
-
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
|
|
35
|
-
@echo " lualatexpdf to make LaTeX files and run them through lualatex"
|
|
36
|
-
@echo " xelatexpdf to make LaTeX files and run them through xelatex"
|
|
37
|
-
@echo " text to make text files"
|
|
38
|
-
@echo " man to make manual pages"
|
|
39
|
-
@echo " texinfo to make Texinfo files"
|
|
40
|
-
@echo " info to make Texinfo files and run them through makeinfo"
|
|
41
|
-
@echo " gettext to make PO message catalogs"
|
|
42
|
-
@echo " changes to make an overview of all changed/added/deprecated items"
|
|
43
|
-
@echo " xml to make Docutils-native XML files"
|
|
44
|
-
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
|
|
45
|
-
@echo " linkcheck to check all external links for integrity"
|
|
46
|
-
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
|
47
|
-
@echo " coverage to run coverage check of the documentation (if enabled)"
|
|
48
|
-
@echo " dummy to check syntax errors of document sources"
|
|
49
|
-
@echo " clean to remove everything in the build directory"
|
|
50
|
-
|
|
51
|
-
.PHONY: clean
|
|
52
|
-
clean:
|
|
53
|
-
rm -rf $(BUILDDIR)
|
|
54
|
-
|
|
55
|
-
.PHONY: latexpdf
|
|
56
|
-
latexpdf:
|
|
57
|
-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
58
|
-
@echo "Running LaTeX files through pdflatex..."
|
|
59
|
-
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
|
60
|
-
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
61
|
-
|
|
62
|
-
.PHONY: latexpdfja
|
|
63
|
-
latexpdfja:
|
|
64
|
-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
65
|
-
@echo "Running LaTeX files through platex and dvipdfmx..."
|
|
66
|
-
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
|
67
|
-
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
68
|
-
|
|
69
|
-
.PHONY: lualatexpdf
|
|
70
|
-
lualatexpdf:
|
|
71
|
-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
72
|
-
@echo "Running LaTeX files through lualatex..."
|
|
73
|
-
$(MAKE) PDFLATEX=lualatex -C $(BUILDDIR)/latex all-pdf
|
|
74
|
-
@echo "lualatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
75
|
-
|
|
76
|
-
.PHONY: xelatexpdf
|
|
77
|
-
xelatexpdf:
|
|
78
|
-
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
|
79
|
-
@echo "Running LaTeX files through xelatex..."
|
|
80
|
-
$(MAKE) PDFLATEX=xelatex -C $(BUILDDIR)/latex all-pdf
|
|
81
|
-
@echo "xelatex finished; the PDF files are in $(BUILDDIR)/latex."
|
|
82
|
-
|
|
83
|
-
.PHONY: info
|
|
84
|
-
info:
|
|
85
|
-
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
|
86
|
-
@echo "Running Texinfo files through makeinfo..."
|
|
87
|
-
make -C $(BUILDDIR)/texinfo info
|
|
88
|
-
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
|
89
|
-
|
|
90
|
-
.PHONY: gettext
|
|
91
|
-
gettext:
|
|
92
|
-
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
|
93
|
-
|
|
94
|
-
# Catch-all target: route all unknown targets to Sphinx
|
|
95
|
-
.PHONY: Makefile
|
|
96
|
-
%: Makefile
|
|
97
|
-
$(SPHINXBUILD) -b "$@" $(ALLSPHINXOPTS) "$(BUILDDIR)/$@"
|
|
98
|
-
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
@ECHO OFF
|
|
2
|
-
|
|
3
|
-
REM Command file for Sphinx documentation
|
|
4
|
-
|
|
5
|
-
pushd %~dp0
|
|
6
|
-
|
|
7
|
-
if "%SPHINXBUILD%" == "" (
|
|
8
|
-
set SPHINXBUILD=sphinx-build
|
|
9
|
-
)
|
|
10
|
-
set BUILDDIR={{ rbuilddir }}
|
|
11
|
-
set SOURCEDIR={{ rsrcdir }}
|
|
12
|
-
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% %O% %SOURCEDIR%
|
|
13
|
-
set I18NSPHINXOPTS=%SPHINXOPTS% %SOURCEDIR%
|
|
14
|
-
if NOT "%PAPER%" == "" (
|
|
15
|
-
set ALLSPHINXOPTS=-D latex_elements.papersize=%PAPER%paper %ALLSPHINXOPTS%
|
|
16
|
-
set I18NSPHINXOPTS=-D latex_elements.papersize=%PAPER%paper %I18NSPHINXOPTS%
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
if "%1" == "" goto help
|
|
20
|
-
|
|
21
|
-
if "%1" == "help" (
|
|
22
|
-
:help
|
|
23
|
-
echo.Please use `make ^<target^>` where ^<target^> is one of
|
|
24
|
-
echo. html to make standalone HTML files
|
|
25
|
-
echo. dirhtml to make HTML files named index.html in directories
|
|
26
|
-
echo. singlehtml to make a single large HTML file
|
|
27
|
-
echo. pickle to make pickle files
|
|
28
|
-
echo. json to make JSON files
|
|
29
|
-
echo. htmlhelp to make HTML files and an HTML help project
|
|
30
|
-
echo. qthelp to make HTML files and a Qt help project
|
|
31
|
-
echo. devhelp to make HTML files and a Devhelp project
|
|
32
|
-
echo. epub to make an EPUB
|
|
33
|
-
echo. latex to make LaTeX files (you can set PAPER=a4 or PAPER=letter)
|
|
34
|
-
echo. latexpdf to make LaTeX files and then PDFs out of them
|
|
35
|
-
echo. text to make text files
|
|
36
|
-
echo. man to make manual pages
|
|
37
|
-
echo. texinfo to make Texinfo files
|
|
38
|
-
echo. gettext to make PO message catalogs
|
|
39
|
-
echo. changes to make an overview over all changed/added/deprecated items
|
|
40
|
-
echo. xml to make Docutils-native XML files
|
|
41
|
-
echo. pseudoxml to make pseudoxml-XML files for display purposes
|
|
42
|
-
echo. linkcheck to check all external links for integrity
|
|
43
|
-
echo. doctest to run all doctests embedded in the documentation if enabled
|
|
44
|
-
echo. coverage to run coverage check of the documentation if enabled
|
|
45
|
-
echo. dummy to check syntax errors of document sources
|
|
46
|
-
echo. clean to remove everything in the build directory
|
|
47
|
-
goto end
|
|
48
|
-
)
|
|
49
|
-
|
|
50
|
-
if "%1" == "clean" (
|
|
51
|
-
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
|
|
52
|
-
del /q /s %BUILDDIR%\*
|
|
53
|
-
goto end
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
REM Check if sphinx-build is available and fallback to Python version if any
|
|
57
|
-
%SPHINXBUILD% 1>NUL 2>NUL
|
|
58
|
-
if errorlevel 9009 goto sphinx_python
|
|
59
|
-
goto sphinx_ok
|
|
60
|
-
|
|
61
|
-
:sphinx_python
|
|
62
|
-
|
|
63
|
-
set SPHINXBUILD=python -m sphinx.__init__
|
|
64
|
-
%SPHINXBUILD% 2> nul
|
|
65
|
-
if errorlevel 9009 (
|
|
66
|
-
echo.
|
|
67
|
-
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
68
|
-
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
69
|
-
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
70
|
-
echo.may add the Sphinx directory to PATH.
|
|
71
|
-
echo.
|
|
72
|
-
echo.If you don't have Sphinx installed, grab it from
|
|
73
|
-
echo.https://www.sphinx-doc.org/
|
|
74
|
-
exit /b 1
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
:sphinx_ok
|
|
78
|
-
|
|
79
|
-
if "%1" == "latexpdf" (
|
|
80
|
-
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
|
81
|
-
cd %BUILDDIR%/latex
|
|
82
|
-
make all-pdf
|
|
83
|
-
cd %~dp0
|
|
84
|
-
echo.
|
|
85
|
-
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
|
|
86
|
-
goto end
|
|
87
|
-
)
|
|
88
|
-
|
|
89
|
-
if "%1" == "latexpdfja" (
|
|
90
|
-
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
|
91
|
-
cd %BUILDDIR%/latex
|
|
92
|
-
make all-pdf-ja
|
|
93
|
-
cd %~dp0
|
|
94
|
-
echo.
|
|
95
|
-
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
|
|
96
|
-
goto end
|
|
97
|
-
)
|
|
98
|
-
|
|
99
|
-
if "%1" == "gettext" (
|
|
100
|
-
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
|
|
101
|
-
if errorlevel 1 exit /b 1
|
|
102
|
-
goto end
|
|
103
|
-
)
|
|
104
|
-
|
|
105
|
-
%SPHINXBUILD% -b %1 %ALLSPHINXOPTS% %BUILDDIR%/%1
|
|
106
|
-
goto end
|
|
107
|
-
|
|
108
|
-
:end
|
|
109
|
-
popd
|
|
110
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|