Commit 7aab2232 authored by chenkai's avatar chenkai Committed by zhangwenwei
Browse files

Add doc page

parent ce79da2e
...@@ -4,6 +4,7 @@ variables: ...@@ -4,6 +4,7 @@ variables:
stages: stages:
- linting - linting
- test - test
- deploy
before_script: before_script:
- echo $PATH - echo $PATH
...@@ -13,7 +14,8 @@ before_script: ...@@ -13,7 +14,8 @@ before_script:
- pip --version - pip --version
- python -c "import torch; print(torch.__version__)" - python -c "import torch; print(torch.__version__)"
.linting_template: &linting_template_def linting:
image: $PYTORCH_IMAGE
stage: linting stage: linting
script: script:
- pip install flake8==3.7.9 yapf isort - pip install flake8==3.7.9 yapf isort
...@@ -35,10 +37,24 @@ before_script: ...@@ -35,10 +37,24 @@ before_script:
- coverage run --branch --source mmdet3d -m pytest tests/ - coverage run --branch --source mmdet3d -m pytest tests/
- coverage report -m - coverage report -m
linting:pytorch1.3-cuda10:
image: $PYTORCH_IMAGE
<<: *linting_template_def
test:pytorch1.3-cuda10: test:pytorch1.3-cuda10:
image: $PYTORCH_IMAGE image: $PYTORCH_IMAGE
<<: *test_template_def <<: *test_template_def
pages:
image: $PYTORCH_IMAGE
stage: deploy
script:
- pip install numba==0.48.0
- pip install sphinx sphinx_rtd_theme recommonmark sphinx_markdown_tables
- cd docs
- make html
- cd ..
- mkdir -p ./public
- cp -r docs/_build/html/* ./public
- ls ./public
artifacts:
paths:
- public
only:
- master
...@@ -40,7 +40,7 @@ utils ...@@ -40,7 +40,7 @@ utils
:members: :members:
mmdet3d.datasets mmdet3d.datasets
-------------- ----------------
datasets datasets
^^^^^^^^^^ ^^^^^^^^^^
......
...@@ -39,7 +39,12 @@ extensions = [ ...@@ -39,7 +39,12 @@ extensions = [
] ]
autodoc_mock_imports = [ autodoc_mock_imports = [
'matplotlib', 'pycocotools', 'terminaltables', 'mmdet3d.version', 'cv2', 'matplotlib', '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'
] ]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
......
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