Skip to content

Commit

Permalink
DOC Add verification study (close #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
andsor committed Nov 21, 2015
1 parent dec7025 commit dcc72e8
Show file tree
Hide file tree
Showing 7 changed files with 890 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ tutorial.rst
tutorial_files/
Untitled*.ipynb
reference
verification.rst
verification_files/
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
=========

* :release:`0.7.0 <2015-11-21>`
* :feature:`1` Add verification study

* :release:`0.6.2 <2015-11-14>`
* :bug:`0` Fix changelog

Expand Down
13 changes: 13 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __getattr__(cls, name):
MOCK_MODULES = [
'numpy', 'numpy.ma', 'scipy', 'scipy.stats', 'scipy.optimize',
'scipy.optimize.optimize', 'matplotlib',
'h5py', 'seaborn', 'cycler',
]
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

Expand Down Expand Up @@ -67,6 +68,18 @@ def __getattr__(cls, name):
shell=True
)

# convert verification study to rst
IPYTHON = (
'ipython' if not on_rtd
else
'/home/docs/checkouts/readthedocs.org/user_builds/pyfssa/envs/latest/bin/ipython3'
)

subprocess.call(
"{} nbconvert --to rst --template _static/rst.tpl verification.ipynb".format(IPYTHON),
shell=True
)


# 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
Expand Down
Loading

0 comments on commit dcc72e8

Please sign in to comment.