Skip to content

Commit cfd8072

Browse files
committed
attempted to fix CI
1 parent d623e78 commit cfd8072

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/sphinx.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
- uses: actions/checkout@v4
1212
with:
1313
persist-credentials: false
14-
- name: Install package
15-
run: pip install .
1614
- name: Build HTML
1715
uses: ammaraskar/sphinx-action@master
1816
- name: Upload artifacts

docs/source/conf.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pathlib import Path
33

44
sys.path.insert(0, str(Path(__file__).resolve().parents[2]))
5+
sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "src"))
56

67
# Configuration file for the Sphinx documentation builder.
78
#
@@ -30,6 +31,17 @@
3031
templates_path = ["_templates"]
3132
exclude_patterns = []
3233

34+
autodoc_mock_imports = [
35+
"torch",
36+
"torchvision",
37+
"cv2",
38+
"numpy",
39+
"scipy",
40+
"matplotlib",
41+
"pandas",
42+
"skimage",
43+
]
44+
3345

3446
# -- Options for HTML output -------------------------------------------------
3547
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

0 commit comments

Comments
 (0)