Skip to content

Commit 899c587

Browse files
Hooman Mehrclaude
andcommitted
Fix docs CI: disable mkdocstrings in CI (no baft importable)
API reference pages need baft importable, which requires loom as a sibling dir. Use MKDOCSTRINGS_ENABLED env var to skip autodoc in CI while keeping all non-API pages building correctly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c9ae023 commit 899c587

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
3636
- name: Build docs
3737
run: .docs-venv/bin/mkdocs build
38+
env:
39+
MKDOCSTRINGS_ENABLED: "false"
40+
# API reference pages require baft importable (needs ../loom).
41+
# Disable mkdocstrings in CI; API docs render locally.
3842

3943
- name: Upload artifact
4044
uses: actions/upload-pages-artifact@v3

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ theme:
3838
plugins:
3939
- search
4040
- mkdocstrings:
41+
enabled: !ENV [MKDOCSTRINGS_ENABLED, true]
42+
default_handler: python
43+
enable_inventory: false
4144
handlers:
4245
python:
4346
options:

0 commit comments

Comments
 (0)