mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-24 13:20:43 +08:00
DOC: Generate correct link to gallery and build javascript before gh-pages upload.
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user