From ff044c53f48fb39b5c52335df005df01753094f9 Mon Sep 17 00:00:00 2001 From: MengzhangLI Date: Fri, 10 Dec 2021 16:49:45 +0800 Subject: [PATCH] [Fix] Unified links of readthedocs in docs (#1119) * change readthedocs * change readthedocs * change readthedocs --- docs/conf.py | 81 +++------------------------------------------- docs_zh-CN/conf.py | 81 +++------------------------------------------- 2 files changed, 8 insertions(+), 154 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 2c5c69fc0..2d84a9620 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -107,83 +107,10 @@ html_theme_options = { }, ] }, - { - 'name': - 'Projects', - 'children': [ - { - 'name': 'MMAction2', - 'url': 'https://github.com/open-mmlab/mmaction2', - }, - { - 'name': 'MMClassification', - 'url': 'https://github.com/open-mmlab/mmclassification', - }, - { - 'name': 'MMOCR', - 'url': 'https://github.com/open-mmlab/mmocr', - }, - { - 'name': 'MMDetection', - 'url': 'https://github.com/open-mmlab/mmdetection', - }, - { - 'name': 'MMEditing', - 'url': 'https://github.com/open-mmlab/mmediting', - }, - { - 'name': 'MMDetection3D', - 'url': 'https://github.com/open-mmlab/mmdetection3d', - }, - { - 'name': 'MMPose', - 'url': 'https://github.com/open-mmlab/mmpose', - }, - { - 'name': 'MMTracking', - 'url': 'https://github.com/open-mmlab/mmtracking', - }, - { - 'name': 'MMGeneration', - 'url': 'https://github.com/open-mmlab/mmgeneration', - }, - { - 'name': 'MMFlow', - 'url': 'https://github.com/open-mmlab/mmflow', - }, - { - 'name': 'MMFewShot', - 'url': 'https://github.com/open-mmlab/mmfewshot', - }, - { - 'name': 'MMHuman3D', - 'url': 'https://github.com/open-mmlab/mmhuman3d', - }, - ] - }, - { - 'name': - 'OpenMMLab', - 'children': [ - { - 'name': 'Homepage', - 'url': 'https://openmmlab.com/' - }, - { - 'name': 'GitHub', - 'url': 'https://github.com/open-mmlab/' - }, - { - 'name': 'Twitter', - 'url': 'https://twitter.com/OpenMMLab' - }, - { - 'name': 'Zhihu', - 'url': 'https://zhihu.com/people/openmmlab' - }, - ] - }, - ] + ], + # Specify the language of shared menu + 'menu_lang': + 'en' } # Add any paths that contain custom static files (such as style sheets) here, diff --git a/docs_zh-CN/conf.py b/docs_zh-CN/conf.py index b89a10608..d551c9aee 100644 --- a/docs_zh-CN/conf.py +++ b/docs_zh-CN/conf.py @@ -107,83 +107,10 @@ html_theme_options = { }, ] }, - { - 'name': - '算法库', - 'children': [ - { - 'name': 'MMAction2', - 'url': 'https://github.com/open-mmlab/mmaction2', - }, - { - 'name': 'MMClassification', - 'url': 'https://github.com/open-mmlab/mmclassification', - }, - { - 'name': 'MMOCR', - 'url': 'https://github.com/open-mmlab/mmocr', - }, - { - 'name': 'MMDetection', - 'url': 'https://github.com/open-mmlab/mmdetection', - }, - { - 'name': 'MMEditing', - 'url': 'https://github.com/open-mmlab/mmediting', - }, - { - 'name': 'MMDetection3D', - 'url': 'https://github.com/open-mmlab/mmdetection3d', - }, - { - 'name': 'MMPose', - 'url': 'https://github.com/open-mmlab/mmpose', - }, - { - 'name': 'MMTracking', - 'url': 'https://github.com/open-mmlab/mmtracking', - }, - { - 'name': 'MMGeneration', - 'url': 'https://github.com/open-mmlab/mmgeneration', - }, - { - 'name': 'MMFlow', - 'url': 'https://github.com/open-mmlab/mmflow', - }, - { - 'name': 'MMFewShot', - 'url': 'https://github.com/open-mmlab/mmfewshot', - }, - { - 'name': 'MMHuman3D', - 'url': 'https://github.com/open-mmlab/mmhuman3d', - }, - ] - }, - { - 'name': - 'OpenMMLab', - 'children': [ - { - 'name': '官网', - 'url': 'https://openmmlab.com/' - }, - { - 'name': 'GitHub', - 'url': 'https://github.com/open-mmlab/' - }, - { - 'name': '推特', - 'url': 'https://twitter.com/OpenMMLab' - }, - { - 'name': '知乎', - 'url': 'https://zhihu.com/people/openmmlab' - }, - ] - }, - ] + ], + # Specify the language of shared menu + 'menu_lang': + 'cn', } # Add any paths that contain custom static files (such as style sheets) here,