[Enchance] inter sphinx mapping (#1346)

* inter sphinx mapping

* fix comment
This commit is contained in:
liukuikun 2022-08-31 15:50:48 +08:00 committed by GitHub
parent 8f0141cfaa
commit bfa2f20a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View File

@ -124,6 +124,15 @@ html_css_files = ['css/readthedocs.css']
myst_heading_anchors = 3
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'numpy': ('https://numpy.org/doc/stable', None),
'torch': ('https://pytorch.org/docs/stable/', None),
'mmcv': ('https://mmcv.readthedocs.io/en/dev-2.x/', None),
'mmengine': ('https://mmengine.readthedocs.io/en/main/', None),
'mmdetection': ('https://mmdetection.readthedocs.io/en/dev-3.x/', None),
}
def builder_inited_handler(app):
subprocess.run(['./merge_docs.sh'])

View File

@ -124,6 +124,16 @@ html_css_files = ['css/readthedocs.css']
myst_heading_anchors = 3
# Configuration for intersphinx
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'numpy': ('https://numpy.org/doc/stable', None),
'torch': ('https://pytorch.org/docs/stable/', None),
'mmcv': ('https://mmcv.readthedocs.io/zh_CN/dev-2.x/', None),
'mmengine': ('https://mmengine.readthedocs.io/zh_CN/main/', None),
'mmdetection': ('https://mmdetection.readthedocs.io/zh_CN/dev-3.x/', None),
}
def builder_inited_handler(app):
subprocess.run(['./cp_origin_docs.sh'])