[Docs] add switch-language (#25)
* add switch-language * Update shared menu * Modify logo * Modify image * Modify image * Modify css * transparent logopull/34/head
parent
b55bf8ec1b
commit
db00e847c2
|
@ -1,6 +1,6 @@
|
|||
.header-logo {
|
||||
background-image: url("../image/mmdeploy-logo.png");
|
||||
background-size: 120px 60px;
|
||||
background-size: 150px 60px;
|
||||
height: 60px;
|
||||
width: 120px;
|
||||
width: 150px;
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 144 KiB |
|
@ -104,80 +104,11 @@ html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
|
|||
html_theme_options = {
|
||||
# TODO: Add log_url
|
||||
# 'logo_url': 'https://mmocr.readthedocs.io/en/latest/',
|
||||
'menu': [
|
||||
{
|
||||
'name': 'GitHub',
|
||||
'url': 'https://github.com/open-mmlab/mmdeploy'
|
||||
},
|
||||
{
|
||||
'name':
|
||||
'Projects',
|
||||
'children': [
|
||||
{
|
||||
'name': 'MMAction2',
|
||||
'url': 'https://github.com/open-mmlab/mmaction2',
|
||||
},
|
||||
{
|
||||
'name': 'MMClassification',
|
||||
'url': 'https://github.com/open-mmlab/mmclassification',
|
||||
},
|
||||
{
|
||||
'name': 'MMDetection',
|
||||
'url': 'https://github.com/open-mmlab/mmdetection',
|
||||
},
|
||||
{
|
||||
'name': 'MMDetection3D',
|
||||
'url': 'https://github.com/open-mmlab/mmdetection3d',
|
||||
},
|
||||
{
|
||||
'name': 'MMEditing',
|
||||
'url': 'https://github.com/open-mmlab/mmediting',
|
||||
},
|
||||
{
|
||||
'name': 'MMGeneration',
|
||||
'url': 'https://github.com/open-mmlab/mmgeneration',
|
||||
},
|
||||
{
|
||||
'name': 'MMOCR',
|
||||
'url': 'https://github.com/open-mmlab/mmocr',
|
||||
},
|
||||
{
|
||||
'name': 'MMPose',
|
||||
'url': 'https://github.com/open-mmlab/mmpose',
|
||||
},
|
||||
{
|
||||
'name': 'MMSegmentation',
|
||||
'url': 'https://github.com/open-mmlab/mmsegmentation',
|
||||
},
|
||||
{
|
||||
'name': 'MMTracking',
|
||||
'url': 'https://github.com/open-mmlab/mmtracking',
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
'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'
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
'menu': [{
|
||||
'name': 'GitHub',
|
||||
'url': 'https://github.com/open-mmlab/mmdeploy'
|
||||
}],
|
||||
'menu_lang': 'en'
|
||||
}
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
|
|
|
@ -64,6 +64,11 @@ You can switch between Chinese and English documents in the lower-left corner of
|
|||
|
||||
faq.md
|
||||
|
||||
.. toctree::
|
||||
:caption: Switch Language
|
||||
|
||||
switch_language.md
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:caption: API Reference
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
## <a href='https://mmdeploy.readthedocs.io/en/latest/'>English</a>
|
||||
|
||||
## <a href='https://mmdeploy.readthedocs.io/zh_CN/latest/'>简体中文</a>
|
|
@ -1,6 +1,6 @@
|
|||
.header-logo {
|
||||
background-image: url("../image/mmdeploy-logo.png");
|
||||
background-size: 120px 60px;
|
||||
background-size: 150px 60px;
|
||||
height: 60px;
|
||||
width: 120px;
|
||||
width: 150px;
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 144 KiB |
|
@ -102,82 +102,12 @@ html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
|
|||
# documentation.
|
||||
#
|
||||
html_theme_options = {
|
||||
'logo_url':
|
||||
'https://mmdeploy.readthedocs.io/en/latest/',
|
||||
'menu': [
|
||||
{
|
||||
'name': 'GitHub',
|
||||
'url': 'https://github.com/open-mmlab/mmdeploy'
|
||||
},
|
||||
{
|
||||
'name':
|
||||
'算法库',
|
||||
'children': [
|
||||
{
|
||||
'name': 'MMAction2',
|
||||
'url': 'https://github.com/open-mmlab/mmaction2',
|
||||
},
|
||||
{
|
||||
'name': 'MMClassification',
|
||||
'url': 'https://github.com/open-mmlab/mmclassification',
|
||||
},
|
||||
{
|
||||
'name': 'MMDetection',
|
||||
'url': 'https://github.com/open-mmlab/mmdetection',
|
||||
},
|
||||
{
|
||||
'name': 'MMDetection3D',
|
||||
'url': 'https://github.com/open-mmlab/mmdetection3d',
|
||||
},
|
||||
{
|
||||
'name': 'MMEditing',
|
||||
'url': 'https://github.com/open-mmlab/mmediting',
|
||||
},
|
||||
{
|
||||
'name': 'MMGeneration',
|
||||
'url': 'https://github.com/open-mmlab/mmgeneration',
|
||||
},
|
||||
{
|
||||
'name': 'MMOCR',
|
||||
'url': 'https://github.com/open-mmlab/mmocr',
|
||||
},
|
||||
{
|
||||
'name': 'MMPose',
|
||||
'url': 'https://github.com/open-mmlab/mmpose',
|
||||
},
|
||||
{
|
||||
'name': 'MMSegmentation',
|
||||
'url': 'https://github.com/open-mmlab/mmsegmentation',
|
||||
},
|
||||
{
|
||||
'name': 'MMTracking',
|
||||
'url': 'https://github.com/open-mmlab/mmtracking',
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
'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'
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
'logo_url': 'https://mmdeploy.readthedocs.io/en/latest/',
|
||||
'menu': [{
|
||||
'name': 'GitHub',
|
||||
'url': 'https://github.com/open-mmlab/mmdeploy'
|
||||
}],
|
||||
'menu_lang': 'cn',
|
||||
}
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
|
|
|
@ -29,6 +29,11 @@
|
|||
|
||||
faq.md
|
||||
|
||||
.. toctree::
|
||||
:caption: 语言切换
|
||||
|
||||
switch_language.md
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:caption: API 文档
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
## <a href='https://mmdeploy.readthedocs.io/en/latest/'>English</a>
|
||||
|
||||
## <a href='https://mmdeploy.readthedocs.io/zh_CN/latest/'>简体中文</a>
|
Loading…
Reference in New Issue