Skip to content

Commit

Permalink
add mock import packages to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMBury committed Mar 18, 2019
1 parent e3cec1c commit 01e4b9c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,20 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import os
import sys
sys.path.insert(0, os.path.abspath('../../'))


# mock import these packages because readthedocs doesn't have them installed
autodoc_mock_imports = [
'pandas',
'numpy'
]





# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -79,7 +89,7 @@

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
# documentation. e.g. 'alabaster'
#
# html_theme_options = {}

Expand Down

0 comments on commit 01e4b9c

Please sign in to comment.