Skip to content

Commit

Permalink
Merge pull request #3131 from nipy/doc/make-examples
Browse files Browse the repository at this point in the history
DOC: Bring examples generation back to ``doc/conf.py``
  • Loading branch information
oesteban authored Jan 2, 2020
2 parents 66cd92f + 643bd06 commit f4d0f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ htmlonly:
@echo
@echo "Build finished. The HTML pages are in _build/html."

html: clean examples2rst htmlonly
html: clean htmlonly
@echo "Build HTML and API finished."

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

latex: clean examples2rst
latex: clean
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
@echo
@echo "Build finished; the LaTeX files are in _build/latex."
Expand Down
3 changes: 3 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
from packaging.version import Version
import nipype

os.makedirs('users/examples', exist_ok=True)
os.system('python ../tools/make_examples.py -x ../../../examples/test_spm.py --no-exec')

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down

0 comments on commit f4d0f9e

Please sign in to comment.