mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
[Enchance] inter sphinx mapping (#1346)
* inter sphinx mapping * fix comment
This commit is contained in:
parent
8f0141cfaa
commit
bfa2f20a35
@ -124,6 +124,15 @@ html_css_files = ['css/readthedocs.css']
|
|||||||
|
|
||||||
myst_heading_anchors = 3
|
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):
|
def builder_inited_handler(app):
|
||||||
subprocess.run(['./merge_docs.sh'])
|
subprocess.run(['./merge_docs.sh'])
|
||||||
|
@ -124,6 +124,16 @@ html_css_files = ['css/readthedocs.css']
|
|||||||
|
|
||||||
myst_heading_anchors = 3
|
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):
|
def builder_inited_handler(app):
|
||||||
subprocess.run(['./cp_origin_docs.sh'])
|
subprocess.run(['./cp_origin_docs.sh'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user