From ef819df1b92bba731ee7b200eb1492fd2e58ead1 Mon Sep 17 00:00:00 2001 From: Jerry Jiarui XU Date: Sun, 25 Jul 2021 11:04:14 -0700 Subject: [PATCH] [Doc] Fixed doc api display (#725) * [Doc] Fixed doc api display * add missing pretty table --- docs/conf.py | 6 ++++-- requirements/readthedocs.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 72c8c5210..758b5ff8f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -46,7 +46,9 @@ extensions = [ '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 @@ html_theme = 'sphinx_rtd_theme' # 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): diff --git a/requirements/readthedocs.txt b/requirements/readthedocs.txt index 0542bfce6..22a894bd7 100644 --- a/requirements/readthedocs.txt +++ b/requirements/readthedocs.txt @@ -1,3 +1,4 @@ mmcv +prettytable torch torchvision