diff --git a/doc/Makefile b/doc/Makefile index 6e18ec70..f7866969 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -11,7 +11,7 @@ PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source DEST = build -.PHONY: all help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest gitwash gh-pages coveragetable +.PHONY: all help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest gitwash gh-pages coveragetable random_gallery all: html @@ -39,10 +39,13 @@ api: python tools/build_modref_templates.py @echo "Build API docs...done." +random_gallery: + @cd source && python random_gallery.py + coveragetable: @cd source && python coverage_generator.py -html: api coveragetable +html: api coveragetable random_gallery $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DEST)/html cp -r source/plots $(DEST)/html @echo diff --git a/doc/source/random_gallery.py b/doc/source/random_gallery.py index e4625536..6c5a40a2 100644 --- a/doc/source/random_gallery.py +++ b/doc/source/random_gallery.py @@ -33,7 +33,7 @@ examples = glob.glob(os.path.join(example_dir, 'plot_*.py')) images, links = [], [] image_url = 'http://scikits-image.org/docs/dev/_images/%s.png' -link_url = 'http://scikits-image.org/docs/dev/auto_examples/plot_%s.html' +link_url = 'http://scikits-image.org/docs/dev/auto_examples/%s.html' for e in examples: e = os.path.basename(e)