[Docs] Add version switcher to menu (#1407)

* [Docs] Add version switcher to menu

* fix link
pull/1415/head
Tong Gao 2022-09-27 10:44:32 +08:00 committed by GitHub
parent 5a88a771c3
commit 77ab13b3ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View File

@ -95,6 +95,15 @@ html_theme_options = {
'name':
'Upstream',
'children': [
{
'name':
'MMEngine',
'url':
'https://github.com/open-mmlab/mmengine',
'description':
'Foundational library for training deep '
'learning models'
},
{
'name': 'MMCV',
'url': 'https://github.com/open-mmlab/mmcv',
@ -107,6 +116,24 @@ html_theme_options = {
},
]
},
{
'name':
'Version',
'children': [
{
'name': 'MMOCR 0.x',
'url': 'https://mmocr.readthedocs.io/en/latest/',
'description': 'Main branch'
},
{
'name': 'MMOCR 1.x',
'url': 'https://mmocr.readthedocs.io/en/dev-1.x/',
'description': '1.x branch'
},
],
'active':
True,
},
],
# Specify the language of shared menu
'menu_lang':

View File

@ -96,6 +96,11 @@ html_theme_options = {
'name':
'上游库',
'children': [
{
'name': 'MMEngine',
'url': 'https://github.com/open-mmlab/mmengine',
'description': '深度学习模型训练基础库'
},
{
'name': 'MMCV',
'url': 'https://github.com/open-mmlab/mmcv',
@ -108,6 +113,24 @@ html_theme_options = {
},
]
},
{
'name':
'版本',
'children': [
{
'name': 'MMOCR 0.x',
'url': 'https://mmocr.readthedocs.io/zh_CN/latest/',
'description': 'main 分支文档'
},
{
'name': 'MMOCR 1.x',
'url': 'https://mmocr.readthedocs.io/zh_CN/dev-1.x/',
'description': '1.x 分支文档'
},
],
'active':
True,
},
],
# Specify the language of shared menu
'menu_lang':