Skip to content

Commit a6ec6e4

Browse files
authored
Mock numpy/scipy for Sphinx on readthedocs (#148)
1 parent d76cd2b commit a6ec6e4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ scratch*.py
1818
examples/tensorflow/distributed_mnist/data
1919
*.iml
2020
doc/_build
21+
doc/_static
22+
doc/_templates
2123
**/.DS_Store
2224
venv/
2325
*~

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def __getattr__(cls, name):
1515

1616

1717
MOCK_MODULES = ['tensorflow', 'tensorflow.core', 'tensorflow.core.framework', 'tensorflow.python',
18-
'tensorflow.python.framework', 'tensorflow_serving', 'tensorflow_serving.apis']
18+
'tensorflow.python.framework', 'tensorflow_serving', 'tensorflow_serving.apis',
19+
'numpy', 'scipy']
1920
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
2021

2122
version = '1.2.2'

0 commit comments

Comments
 (0)