Skip to content

Commit

Permalink
changed docs over
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinkunks committed Feb 11, 2016
1 parent 4606844 commit f7acf8a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/conf.py
Expand Up @@ -22,6 +22,20 @@
sys.path.insert(0, os.path.abspath('..'))


class Mock(MagicMock):
"""
Required to get around having to install dependencies to build docs.
"""
@classmethod
def __getattr__(cls, name):
return Mock()

MOCK_MODULES = ['numpy',
'matplotlib',
'matplotlib.pyplot',
'matplotlib.patches']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

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

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down

0 comments on commit f7acf8a

Please sign in to comment.