Skip to content

Commit

Permalink
clean up doc configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
phobson committed Jan 5, 2016
1 parent 99f6e0f commit c742738
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions docs/conf.py
Expand Up @@ -18,35 +18,28 @@
import shlex
import sphinx

autodoc_member_order = 'bysource'

from unittest import mock

MOCK_MODULES = ['scipy', 'scipy.stats']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()

# 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.
#sys.path.insert(0, os.path.abspath('.'))
source_suffix = ['.rst']

# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
numpydoc_show_class_members = False
autodoc_member_order = 'bysource'
html_theme = 'sphinx_rtd_theme'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
sys.path.insert(0, os.path.abspath('sphinxext'))
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'plot_generator',
'plot_directive',
'numpydoc',
'ipython_directive',
'ipython_console_highlighting',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down

0 comments on commit c742738

Please sign in to comment.