Skip to content

Commit

Permalink
Added some mock import
Browse files Browse the repository at this point in the history
  • Loading branch information
mktk1117 committed Dec 6, 2023
1 parent 02b760a commit 0277c95
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
run: |
pip install sphinx sphinx_rtd_theme sphinx-copybutton
pip install -r docs/requirements.txt
pip install elevation_mapping_cupy/.
- name: Sphinx build
run: |
sphinx-build docs/source docs/_build
Expand Down
22 changes: 20 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,26 @@

import os, sys

sys.path.insert(0, os.path.abspath("../../elevation_mapping_cupy"))
sys.path.insert(0, os.path.abspath("../../sensor_processing/semantic_sensor"))
sys.path.append(os.path.join(os.path.dirname(__file__), '../../elevation_mapping_cupy/script'))
sys.path.append(os.path.join(os.path.dirname(__file__), '../../sensor_processing/semantic_sensor/script'))

autodoc_mock_imports = [
"cupy"
"numpy",
"scipy",
"dataclasses",
"ruamel.yaml",
"opencv-python",
"simple-parsing",
"scikit-image",
"matplotlib",
"catkin-tools",
"catkin_pkg",
"detectron",
"torch",
"shapely",
"simple_parsing",
]

on_rtd = os.environ.get("READTHEDOCS", None) == "True"

Expand Down

0 comments on commit 0277c95

Please sign in to comment.