Skip to content

Commit

Permalink
mock imports for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Oct 2, 2018
1 parent 96a2ee3 commit d0648b2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 25 deletions.
9 changes: 0 additions & 9 deletions .readthedocs.yml

This file was deleted.

16 changes: 0 additions & 16 deletions docs/environment.yml

This file was deleted.

18 changes: 18 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@
# go up two levels from /docs/source to the package root
sys.path.insert(0, os.path.abspath('../..'))

# mock import these packages because readthedocs doesn't have them installed
autodoc_mock_imports = [
'descartes',
'geopandas',
'matplotlib',
'matplotlib.cm',
'matplotlib.collections',
'matplotlib.pyplot',
'networkx',
'numpy',
'pandas',
'requests',
'rtree',
'rtree.index',
'shapely',
'shapely.geometry',
'shapely.ops'
]

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

Expand Down

0 comments on commit d0648b2

Please sign in to comment.