Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32906a8

Browse files
committed
ENH added a Makefile action to build LR images doc
- typing make html-small-images now generates low resolution images in the documentation. - makefile now creates symlinks and others
1 parent 9d4bec6 commit 32906a8

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

doc/Makefile

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
2121

2222
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
2323

24-
all: html
24+
all: prepare html
2525

2626
help:
2727
@echo "Please use \`make <target>' where <target> is one of"
@@ -50,12 +50,21 @@ help:
5050

5151
clean:
5252
rm -rf $(BUILDDIR)/*
53+
rm -rf examples
54+
rm -rf users/installing.rst
55+
rm -rf _templates/gallery.html
5356

5457
html:
5558
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html -W
5659
@echo
5760
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
5861

62+
html-small-plots:
63+
$(SPHINXBUILD) -D plot_formats=png:80 -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html -W
64+
@echo
65+
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
66+
67+
5968
dirhtml:
6069
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
6170
@echo
@@ -177,3 +186,19 @@ pseudoxml:
177186
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
178187
@echo
179188
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
189+
190+
191+
prepare: mpl_examples mpl_toolkits/axes_grid1/examples \
192+
mpl_toolkits/axisartist/examples users/installing.rst
193+
194+
mpl_examples: ../examples
195+
ln -s $< $@
196+
197+
mpl_toolkits/axes_grid1/examples:
198+
ln -s ../../../examples/axes_grid1/ $@
199+
200+
mpl_toolkits/axisartist/examples:
201+
ln -s ../../../examples/axisartist/ $@
202+
203+
users/installing.rst: ../INSTALL
204+
cp $< $@

0 commit comments

Comments
 (0)