DOC: Generate correct link to gallery and build javascript before gh-pages upload.

This commit is contained in:
Stefan van der Walt
2012-01-26 17:49:57 -08:00
parent 945f85cf64
commit b3cc37ce6b
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -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
+1 -1
View File
@@ -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)