From 19472217591a258e0fffd2fa072692ff6fd96384 Mon Sep 17 00:00:00 2001 From: Jiarui XU Date: Sun, 25 Jul 2021 10:18:38 -0700 Subject: [PATCH 1/2] [Doc] Fixed doc api display --- docs/conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 72c8c5210c..758b5ff8ff 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -46,7 +46,9 @@ def get_version(): 'sphinx_markdown_tables', ] -autodoc_mock_imports = ['matplotlib', 'pycocotools', 'mmseg.version'] +autodoc_mock_imports = [ + 'matplotlib', 'pycocotools', 'mmseg.version', 'mmcv.ops' +] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -79,7 +81,7 @@ def get_version(): # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] -language = 'zh_CN' +language = 'en' def builder_inited_handler(app): From 2ab08944231d487bab0c4bf835f6678861b078bb Mon Sep 17 00:00:00 2001 From: Jiarui XU Date: Sun, 25 Jul 2021 10:26:06 -0700 Subject: [PATCH 2/2] add missing pretty table --- requirements/readthedocs.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements/readthedocs.txt b/requirements/readthedocs.txt index 0542bfce6d..22a894bd71 100644 --- a/requirements/readthedocs.txt +++ b/requirements/readthedocs.txt @@ -1,3 +1,4 @@ mmcv +prettytable torch torchvision