Commit 6fd688a8 authored by zhangwenwei's avatar zhangwenwei
Browse files

fix docs' version issue

parent cac7cecd
...@@ -23,9 +23,17 @@ project = 'MMDetection3D' ...@@ -23,9 +23,17 @@ project = 'MMDetection3D'
copyright = '2020-2023, OpenMMLab' copyright = '2020-2023, OpenMMLab'
author = 'MMDetection3D Authors' author = 'MMDetection3D Authors'
version_file = '../mmdet3d/version.py'
def get_version():
with open(version_file, 'r') as f:
exec(compile(f.read(), version_file, 'exec'))
return locals()['__version__']
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
with open('../mmdet3d/VERSION', 'r') as f: release = get_version()
release = f.read().strip()
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
...@@ -42,25 +50,8 @@ extensions = [ ...@@ -42,25 +50,8 @@ extensions = [
] ]
autodoc_mock_imports = [ autodoc_mock_imports = [
'cv2', 'cv2', 'matplotlib', 'nuscenes', 'PIL', 'pycocotools', 'pyquaternion',
'matplotlib', 'terminaltables', 'mmcv', 'mmdet', 'mmdet3d.version', 'mmdet3d.ops'
'nuscenes',
'PIL',
'pycocotools',
'pyquaternion',
'terminaltables',
'mmcv',
'mmdet',
'mmdet3d.version',
'mmdet3d.ops.ball_query',
'mmdet3d.ops.furthest_point_sample',
'mmdet3d.ops.gather_points',
'mmdet3d.ops.group_points',
'mmdet3d.ops.interpolate',
'mmdet3d.ops.roiaware_pool3d',
'mmdet3d.ops.spconv',
'mmdet3d.ops.voxel.voxel_layer',
'mmdet3d.ops.iou3d',
] ]
autosectionlabel_prefix_document = True autosectionlabel_prefix_document = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment