parent
4d8229c141
commit
4e6f2ebced
15
docs/conf.py
15
docs/conf.py
@ -50,6 +50,10 @@ autodoc_mock_imports = [
|
|||||||
'matplotlib', 'pycocotools', 'mmseg.version', 'mmcv.ops'
|
'matplotlib', 'pycocotools', 'mmseg.version', 'mmcv.ops'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Ignore >>> when copying code
|
||||||
|
copybutton_prompt_text = r'>>> |\.\.\. '
|
||||||
|
copybutton_prompt_is_regexp = True
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
|
|
||||||
@ -78,7 +82,8 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
|||||||
html_theme = 'pytorch_sphinx_theme'
|
html_theme = 'pytorch_sphinx_theme'
|
||||||
html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
|
html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
|
||||||
html_theme_options = {
|
html_theme_options = {
|
||||||
# 'logo_url': 'https://mmsegmentation.readthedocs.io/en/latest/',
|
'logo_url':
|
||||||
|
'https://mmsegmentation.readthedocs.io/en/latest/',
|
||||||
'menu': [
|
'menu': [
|
||||||
{
|
{
|
||||||
'name':
|
'name':
|
||||||
@ -156,6 +161,14 @@ html_theme_options = {
|
|||||||
'name': 'GitHub',
|
'name': 'GitHub',
|
||||||
'url': 'https://github.com/open-mmlab/'
|
'url': 'https://github.com/open-mmlab/'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': 'Twitter',
|
||||||
|
'url': 'https://twitter.com/OpenMMLab'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': 'Zhihu',
|
||||||
|
'url': 'https://zhihu.com/people/openmmlab'
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@ -50,6 +50,10 @@ autodoc_mock_imports = [
|
|||||||
'matplotlib', 'pycocotools', 'mmseg.version', 'mmcv.ops'
|
'matplotlib', 'pycocotools', 'mmseg.version', 'mmcv.ops'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Ignore >>> when copying code
|
||||||
|
copybutton_prompt_text = r'>>> |\.\.\. '
|
||||||
|
copybutton_prompt_is_regexp = True
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
|
|
||||||
@ -78,11 +82,12 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
|||||||
html_theme = 'pytorch_sphinx_theme'
|
html_theme = 'pytorch_sphinx_theme'
|
||||||
html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
|
html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]
|
||||||
html_theme_options = {
|
html_theme_options = {
|
||||||
# 'logo_url': 'https://mmsegmentation.readthedocs.io/en/latest/',
|
'logo_url':
|
||||||
|
'https://mmsegmentation.readthedocs.io/zh-CN/latest/',
|
||||||
'menu': [
|
'menu': [
|
||||||
{
|
{
|
||||||
'name':
|
'name':
|
||||||
'Tutorial',
|
'教程',
|
||||||
'url':
|
'url':
|
||||||
'https://github.com/open-mmlab/mmsegmentation/blob/master/'
|
'https://github.com/open-mmlab/mmsegmentation/blob/master/'
|
||||||
'demo/MMSegmentation_Tutorial.ipynb'
|
'demo/MMSegmentation_Tutorial.ipynb'
|
||||||
@ -93,18 +98,18 @@ html_theme_options = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name':
|
'name':
|
||||||
'Upstream',
|
'上游库',
|
||||||
'children': [
|
'children': [
|
||||||
{
|
{
|
||||||
'name': 'MMCV',
|
'name': 'MMCV',
|
||||||
'url': 'https://github.com/open-mmlab/mmcv',
|
'url': 'https://github.com/open-mmlab/mmcv',
|
||||||
'description': 'Foundational library for computer vision'
|
'description': '基础视觉库'
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name':
|
'name':
|
||||||
'Projects',
|
'算法库',
|
||||||
'children': [
|
'children': [
|
||||||
{
|
{
|
||||||
'name': 'MMAction2',
|
'name': 'MMAction2',
|
||||||
@ -149,13 +154,21 @@ html_theme_options = {
|
|||||||
'OpenMMLab',
|
'OpenMMLab',
|
||||||
'children': [
|
'children': [
|
||||||
{
|
{
|
||||||
'name': 'Homepage',
|
'name': '官网',
|
||||||
'url': 'https://openmmlab.com/'
|
'url': 'https://openmmlab.com/'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'GitHub',
|
'name': 'GitHub',
|
||||||
'url': 'https://github.com/open-mmlab/'
|
'url': 'https://github.com/open-mmlab/'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': '推特',
|
||||||
|
'url': 'https://twitter.com/OpenMMLab'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': '知乎',
|
||||||
|
'url': 'https://zhihu.com/people/openmmlab'
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user