Skip to content

Commit f4d0f9e

Browse files
authored
Merge pull request nipy#3131 from nipy/doc/make-examples
DOC: Bring examples generation back to ``doc/conf.py``
2 parents 66cd92f + 643bd06 commit f4d0f9e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: doc/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ htmlonly:
3232
@echo
3333
@echo "Build finished. The HTML pages are in _build/html."
3434

35-
html: clean examples2rst htmlonly
35+
html: clean htmlonly
3636
@echo "Build HTML and API finished."
3737

3838
examples2rst: clean
3939
mkdir -p users/examples
4040
../tools/make_examples.py -x ../../../examples/test_spm.py --no-exec
4141
@echo "examples2rst finished."
4242

43-
latex: clean examples2rst
43+
latex: clean
4444
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
4545
@echo
4646
@echo "Build finished; the LaTeX files are in _build/latex."

Diff for: doc/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
from packaging.version import Version
1717
import nipype
1818

19+
os.makedirs('users/examples', exist_ok=True)
20+
os.system('python ../tools/make_examples.py -x ../../../examples/test_spm.py --no-exec')
21+
1922
# If extensions (or modules to document with autodoc) are in another directory,
2023
# add these directories to sys.path here. If the directory is relative to the
2124
# documentation root, use os.path.abspath to make it absolute, like shown here.

0 commit comments

Comments
 (0)