Skip to content

Commit

Permalink
[docs ][python] add datatable to the mocked modules during docs bui…
Browse files Browse the repository at this point in the history
…lding process and sort them alphabetically (#4750)
  • Loading branch information
StrikerRUS authored Nov 1, 2021
1 parent 08ccd4a commit da98f24
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,18 @@
INTERNAL_REF_REGEX = compile(r"(?P<url>\.\/.+)(?P<extension>\.rst)(?P<anchor>$|#)")

# -- mock out modules
MOCK_MODULES = ['numpy', 'scipy', 'scipy.sparse',
'sklearn', 'matplotlib', 'pandas', 'graphviz', 'dask', 'dask.distributed']
MOCK_MODULES = [
'dask',
'dask.distributed',
'datatable',
'graphviz',
'matplotlib',
'numpy',
'pandas',
'scipy',
'scipy.sparse',
'sklearn'
]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()

Expand Down

0 comments on commit da98f24

Please sign in to comment.