docs/conf.py

changeset 132
dc48952c383d
parent 110
b307099457cf
child 168
9fed2446a59f
equal deleted inserted replaced
131:7225c844bdc5 132:dc48952c383d
33 return MagicMock() 33 return MagicMock()
34 34
35 MOCK_MODULES = ['netCDF4', 'numpy', 'scipy', 'matplotlib', 'matplotlib.ticker'] 35 MOCK_MODULES = ['netCDF4', 'numpy', 'scipy', 'matplotlib', 'matplotlib.ticker']
36 sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) 36 sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
37 37
38 # -- General configuration ------------------------------------------------ 38 # NumpyDoc options, to work with autosummary
39 numpydoc_show_class_members = False
40 # class_members_toctree = False
41
42 # -- General `onfiguration ------------------------------------------------
39 43
40 # If your documentation needs a minimal Sphinx version, state it here. 44 # If your documentation needs a minimal Sphinx version, state it here.
41 # 45 #
42 # needs_sphinx = '1.0' 46 # needs_sphinx = '1.0'
43 47
44 # Add any Sphinx extension module names here, as strings. They can be 48 # Add any Sphinx extension module names here, as strings. They can be
45 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 49 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
46 # ones. 50 # ones.
47 extensions = ['sphinx.ext.autodoc', 51 extensions = ['sphinx.ext.autodoc',
48 'sphinx.ext.intersphinx', 52 'sphinx.ext.autosummary',
49 'sphinx.ext.todo', 53 'sphinx.ext.intersphinx',
50 'sphinx.ext.mathjax', 54 'sphinx.ext.todo',
51 'sphinx.ext.viewcode'] 55 'sphinx.ext.mathjax',
56 'sphinx.ext.viewcode',
57 'numpydoc',
58 ]
52 59
53 # Add any paths that contain templates here, relative to this directory. 60 # Add any paths that contain templates here, relative to this directory.
54 templates_path = ['_templates'] 61 templates_path = ['_templates']
55 62
56 # The suffix(es) of source filenames. 63 # The suffix(es) of source filenames.

mercurial