Debian Codegraph @

doc/Makefile

raw ◀ ▶
2 Debian patches touch this file
1 # Minimal makefile for Sphinx documentation
2 #
3
4 # You can set these variables from the command line.
•5 SPHINXOPTS = --keep-going
•6 SPHINXBUILD = python3 -msphinx
7 SPHINXPROJ = matplotlib
8 SOURCEDIR = .
9 BUILDDIR = build
10
11 # Put it first so that "make" without argument is like "make help".
12 help:
13 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
15 .PHONY: help Makefile
16
17 # workaround because sphinx does not completely clean up (#11139)
18 clean:
19 @$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20 rm -rf "$(SOURCEDIR)/build"
21 rm -rf "$(SOURCEDIR)/_tags"
22 rm -rf "$(SOURCEDIR)/api/_as_gen"
23 rm -rf "$(SOURCEDIR)/gallery"
24 rm -rf "$(SOURCEDIR)/plot_types"
25 rm -rf "$(SOURCEDIR)/tutorials"
26 rm -rf "$(SOURCEDIR)/users/explain"
27 rm -rf "$(SOURCEDIR)/savefig"
28 rm -rf "$(SOURCEDIR)/sphinxext/__pycache__"
29 rm -f $(SOURCEDIR)/_static/constrained_layout*.png
30 rm -f $(SOURCEDIR)/sg_execution_times.rst
31
32 show:
33 @python -c "import webbrowser; webbrowser.open_new_tab('file://$(shell pwd)/build/html/index.html')"
34
35 html-noplot:
36 $(SPHINXBUILD) -D plot_gallery=0 -b html $(SOURCEDIR) $(BUILDDIR)/html $(SPHINXOPTS) $(O)
37 @echo
38 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
39
40 # This will skip the subdirectories listed in .mpl_skip_subdirs.yaml If
41 # this file does not exist, one will be created for you. This option useful
42 # to quickly build parts of the docs, but the resulting build will not
43 # have all the crosslinks etc.
44 html-skip-subdirs:
45 $(SPHINXBUILD) -D skip_sub_dirs=1 -b html $(SOURCEDIR) $(BUILDDIR)/html $(SPHINXOPTS) $(O)
46
47 # Catch-all target: route all unknown targets to Sphinx using the new
48 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
49 %: Makefile
50 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)