Skip to content

Commit

Permalink
use shared menu from theme (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZCMax authored Dec 14, 2021
1 parent 2f7c428 commit 4afbce3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 169 deletions.
113 changes: 15 additions & 98 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,113 +95,30 @@ def get_version():
},
{
'name':
'Projects',
'children': [{
'name':
'MMCV',
'url':
'https://mmcv.readthedocs.io/en/latest/',
'description':
'Foundational library for computer vision'
}, {
'name':
'MMDetection',
'url':
'https://mmdetection.readthedocs.io/en/latest/',
'description':
'Object detection toolbox and benchmark'
}, {
'name':
'MMAction2',
'url':
'https://mmaction2.readthedocs.io/en/latest/',
'description':
'Action understanding toolbox and benchmark'
}, {
'name':
'MMClassification',
'url':
'https://mmclassification.readthedocs.io/en/latest/',
'description':
'Image classification toolbox and benchmark'
}, {
'name':
'MMSegmentation',
'url':
'https://mmsegmentation.readthedocs.io/en/latest/',
'description':
'Semantic segmentation toolbox and benchmark'
}, {
'name': 'MMEditing',
'url': 'https://mmediting.readthedocs.io/en/latest/',
'description': 'Image and video editing toolbox'
}, {
'name':
'MMOCR',
'url':
'https://mmocr.readthedocs.io/en/latest/',
'description':
'Text detection, recognition and understanding toolbox'
}, {
'name': 'MMPose',
'url': 'https://mmpose.readthedocs.io/en/latest/',
'description': 'Pose estimation toolbox and benchmark'
}, {
'name':
'MMTracking',
'url':
'https://mmtracking.readthedocs.io/en/latest/',
'description':
'Video perception toolbox and benchmark'
}, {
'name': 'MMGeneration',
'url': 'https://mmgeneration.readthedocs.io/en/latest/',
'description': 'Generative model toolbox'
}, {
'name': 'MMFlow',
'url': 'https://mmflow.readthedocs.io/en/latest/',
'description': 'Optical flow toolbox and benchmark'
}, {
'name':
'MMFewShot',
'url':
'https://mmfewshot.readthedocs.io/en/latest/',
'description':
'FewShot learning toolbox and benchmark'
}, {
'name':
'MMHuman3D',
'url':
'https://mmhuman3d.readthedocs.io/en/latest/',
'description':
'3D human parametric model toolbox and benchmark.'
}]
},
{
'name':
'OpenMMLab',
'Upstream',
'children': [
{
'name': 'Homepage',
'url': 'https://openmmlab.com/'
},
{
'name': 'GitHub',
'url': 'https://github.com/open-mmlab/'
'name': 'MMCV',
'url': 'https://github.com/open-mmlab/mmcv',
'description': 'Foundational library for computer vision'
},
{
'name': 'Twitter',
'url': 'https://twitter.com/OpenMMLab'
},
{
'name': 'Zhihu',
'url': 'https://zhihu.com/people/openmmlab'
'name': 'MMDetection',
'url': 'https://github.com/open-mmlab/mmdetection',
'description': 'Object detection toolbox and benchmark'
},
]
},
]
],
# Specify the language of shared menu
'menu_lang':
'en'
}

language = 'en'

master_doc = 'index'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand Down
86 changes: 15 additions & 71 deletions docs_zh-CN/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,86 +95,30 @@ def get_version():
},
{
'name':
'算法库',
'children': [{
'name': 'MMCV',
'url': 'https://mmcv.readthedocs.io/zh_CN/latest/',
'description': '计算机视觉基础库'
}, {
'name': 'MMDetection',
'url': 'https://mmdetection.readthedocs.io/zh_CN/latest/',
'description': '检测工具箱与测试基准'
}, {
'name': 'MMAction2',
'url': 'https://mmaction2.readthedocs.io/zh_CN/latest/',
'description': '视频理解工具箱与测试基准'
}, {
'name': 'MMClassification',
'url': 'https://mmclassification.readthedocs.io/zh_CN/latest/',
'description': '图像分类工具箱与测试基准'
}, {
'name': 'MMSegmentation',
'url': 'https://mmsegmentation.readthedocs.io/zh_CN/latest/',
'description': '语义分割工具箱与测试基准'
}, {
'name': 'MMEditing',
'url': 'https://mmediting.readthedocs.io/zh_CN/latest/',
'description': '图像视频编辑工具箱'
}, {
'name': 'MMOCR',
'url': 'https://mmocr.readthedocs.io/zh_CN/latest/',
'description': '全流程文字检测识别理解工具包'
}, {
'name': 'MMPose',
'url': 'https://mmpose.readthedocs.io/zh_CN/latest/',
'description': '姿态估计工具箱与测试基准'
}, {
'name': 'MMTracking',
'url': 'https://mmtracking.readthedocs.io/zh_CN/latest/',
'description': '一体化视频目标感知平台'
}, {
'name': 'MMGeneration',
'url': 'https://mmgeneration.readthedocs.io/zh_CN/latest/',
'description': '生成模型工具箱'
}, {
'name': 'MMFlow',
'url': 'https://mmflow.readthedocs.io/zh_CN/latest/',
'description': '光流估计工具箱与测试基准'
}, {
'name': 'MMFewShot',
'url': 'https://mmfewshot.readthedocs.io/zh_CN/latest/',
'description': '少样本学习工具箱与测试基准'
}, {
'name': 'MMHuman3D',
'url': 'https://mmhuman3d.readthedocs.io/en/latest/',
'description': 'OpenMMLab 人体参数化模型工具箱与测试基准.'
}]
},
{
'name':
'OpenMMLab',
'上游库',
'children': [
{
'name': '官网',
'url': 'https://openmmlab.com/'
},
{
'name': 'GitHub',
'url': 'https://github.com/open-mmlab/'
'name': 'MMCV',
'url': 'https://github.com/open-mmlab/mmcv',
'description': '基础视觉库'
},
{
'name': '推特',
'url': 'https://twitter.com/OpenMMLab'
},
{
'name': '知乎',
'url': 'https://zhihu.com/people/openmmlab'
'name': 'MMDetection',
'url': 'https://github.com/open-mmlab/mmdetection',
'description': '目标检测工具箱'
},
]
},
]
],
# Specify the language of shared menu
'menu_lang':
'cn',
}

language = 'zh_CN'

master_doc = 'index'

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand Down

0 comments on commit 4afbce3

Please # to comment.