docs/conf.py

changeset 132
dc48952c383d
parent 110
b307099457cf
child 168
9fed2446a59f
--- a/docs/conf.py	Tue Feb 27 18:41:06 2018 +0200
+++ b/docs/conf.py	Wed Feb 28 12:04:10 2018 +0200
@@ -35,7 +35,11 @@
     MOCK_MODULES = ['netCDF4', 'numpy', 'scipy', 'matplotlib', 'matplotlib.ticker']
     sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
 
-# -- General configuration ------------------------------------------------
+# NumpyDoc options, to work with autosummary
+numpydoc_show_class_members = False
+# class_members_toctree = False
+
+# -- General `onfiguration ------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
 #
@@ -45,10 +49,13 @@
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
 # ones.
 extensions = ['sphinx.ext.autodoc',
-            'sphinx.ext.intersphinx',
-            'sphinx.ext.todo',
-            'sphinx.ext.mathjax',
-            'sphinx.ext.viewcode']
+              'sphinx.ext.autosummary',
+              'sphinx.ext.intersphinx',
+              'sphinx.ext.todo',
+              'sphinx.ext.mathjax',
+              'sphinx.ext.viewcode',
+              'numpydoc',
+              ]
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']

mercurial