diff --git a/doc_requirements.txt b/doc_requirements.txt new file mode 100644 index 00000000..4423a1ff --- /dev/null +++ b/doc_requirements.txt @@ -0,0 +1,3 @@ +mock +numpydoc +sphinx_rtd_theme diff --git a/docs/conf.py b/docs/conf.py index 4d6ad428..62de661e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,6 +13,15 @@ import inspect from sphinx import apidoc +import mock + +MOCK_MODULES = ['numpy', 'pykdtree', 'netCDF4', 'scipy', 'pandas', + 'statsmodels', 'matplotlib', 'pygeogrids', 'pygrib', + 'pyresample', 'pybufr-ecmwf'] + +for mod_name in MOCK_MODULES: + sys.modules[mod_name] = mock.Mock() + __location__ = os.path.join(os.getcwd(), os.path.dirname( inspect.getfile(inspect.currentframe()))) @@ -52,7 +61,7 @@ # General information about the project. project = u'pytesmo' -copyright = u'2014, Christoph Paulik' +copyright = u'2014-2015, TU Wien' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the