Skip to content

Commit

Permalink
readthedocs problems
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed May 28, 2018
1 parent e9c33cb commit a3cf2eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
sys.path.insert(0, os.path.abspath('../'))
import numpy, pandas, scipy.special

########### TRICK FOUND ON SOME TUTORIAL : ADD IN THE MOCK_MODULES ANY EXTERNAL MODULE YOU'RE USING IN YOUR PACKAGE.

import mock

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

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

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

0 comments on commit a3cf2eb

Please sign in to comment.