Skip to content

Commit e31c605

Browse files
committed
fix .readthedocs.yaml to install python deps from requirements-docs.txt
1 parent 30c8965 commit e31c605

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

.readthedocs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ build:
77

88
sphinx:
99
configuration: docs/conf.py
10+
11+
python:
12+
install:
13+
- requirements: requirements-docs.txt

docs/conf.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,7 @@
1010
# add these directories to sys.path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212

13-
import sys
14-
from pathlib import Path
15-
16-
# Ensure the project's src-based package layout is discoverable when building docs
17-
_DOCS_DIR = Path(__file__).resolve().parent
18-
_PROJECT_ROOT = _DOCS_DIR.parent
19-
_SRC_DIR = _PROJECT_ROOT / "src"
20-
21-
# Insert the src directory so imports (e.g., `import HydroErr`) resolve correctly
22-
sys.path.insert(0, str(_SRC_DIR))
23-
24-
import HydroErr # noqa: E402
13+
import HydroErr
2514

2615
# -- Project information -----------------------------------------------------
2716

requirements-docs.txt

-30 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)