Skip to content

Commit ea7db8d

Browse files
fix: install datajoint-python in BUILD mode for mkdocstrings
Problem: - mkdocs build failing with: ModuleNotFoundError: No module named 'datajoint' - mkdocstrings needs to import datajoint to generate API docs - Previous fix only mounted source but didn't install it in BUILD mode Solution: - Install datajoint-python in BUILD mode with 'pip install -e' - mkdocstrings can now import and introspect modules for API docs - No database connectivity needed - just package installation This completes the fix started in PR #102.
1 parent 044910c commit ea7db8d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-compose.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ services:
6464
pip install scikit-image pooch
6565
mkdocs serve --config-file ./mkdocs.yaml -a 0.0.0.0:8000
6666
elif echo "$${MODE}" | grep -i build &>/dev/null; then
67-
# BUILD mode: just build static site from pre-executed notebooks
68-
# datajoint-python source is mounted for mkdocstrings API doc generation
67+
# BUILD mode: build static site from pre-executed notebooks
68+
# Install datajoint-python for mkdocstrings (needs to import for API docs)
69+
pip install -e /datajoint-python
6970
mkdocs build --config-file ./mkdocs.yaml
7071
else
7172
echo "Unexpected mode..."

0 commit comments

Comments
 (0)