mirror of https://github.com/open-mmlab/mmocr.git
[Docs] Add version switcher to menu (#1407)
* [Docs] Add version switcher to menu * fix linkpull/1415/head
parent
5a88a771c3
commit
77ab13b3ff
|
@ -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':
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue