diff --git a/docs/conf.py b/docs/conf.py index d5d58276..a25b8cf4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -51,7 +51,7 @@ extensions = [ 'sphinx_copybutton', ] -autodoc_mock_imports = ['mmcv._ext'] +autodoc_mock_imports = ['mmcv._ext', 'matplotlib'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs_zh-CN/conf.py b/docs_zh-CN/conf.py index f5df9a1a..14b4217f 100644 --- a/docs_zh-CN/conf.py +++ b/docs_zh-CN/conf.py @@ -51,7 +51,7 @@ extensions = [ 'sphinx_copybutton', ] -autodoc_mock_imports = ['mmcv._ext'] +autodoc_mock_imports = ['mmcv._ext', 'matplotlib'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']