Skip to content

fix(ci): install SDK dependencies before docs build#14

Merged
beonde merged 6 commits intomainfrom
fix/broken-enterprise-link
Jan 10, 2026
Merged

fix(ci): install SDK dependencies before docs build#14
beonde merged 6 commits intomainfrom
fix/broken-enterprise-link

Conversation

@beonde
Copy link
Member

@beonde beonde commented Jan 10, 2026

Summary

Fixes mkdocstrings/griffe resolution errors during documentation build.

Problem

The docs CI was failing because mkdocstrings/griffe could not resolve base classes like Exception, enum.Enum, str, or pydantic.BaseModel when documenting Python code from capiscio-sdk-python.

Solution

Install capiscio-sdk-python (with its dependencies like pydantic) before installing requirements-docs.txt. This ensures mkdocstrings/griffe can resolve all base classes during documentation generation.

Changes

  1. Reordered dependency installation in .github/workflows/deploy.yml
  2. SDK installed first (brings in pydantic, etc.)
  3. Docs requirements installed second

Testing

The --strict flag on mkdocs build will validate that all type references resolve correctly.

The '../../../enterprise/' relative link pointed to a non-existent
folder. Replaced with mailto:sales@capisc.io as a contact point for
enterprise deployment documentation.

Discovered during documentation audit.
mkdocstrings/griffe needs pydantic and other sdk dependencies
installed to resolve base classes during documentation generation.
Install capiscio-sdk-python (with its deps) before requirements-docs.txt.
- Install capiscio-sdk-python with [dev] extras to ensure all deps available
- Move import/inventories to correct location in mkdocstrings config
- Add preload_modules for pydantic to help griffe resolve base classes
@github-actions
Copy link

✅ Documentation Build Successful

The documentation build completed successfully and passed validation checks.

  • ✅ Build completed without errors
  • ✅ Critical files present (index.html, sitemap.xml, robots.txt)
  • ✅ Link validation completed

This PR will deploy to dev-docs.capisc.io when merged to main.

@github-actions
Copy link

✅ Documentation Build Successful

The documentation build completed successfully and passed validation checks.

  • ✅ Build completed without errors
  • ✅ Critical files present (index.html, sitemap.xml, robots.txt)
  • ✅ Link validation completed

This PR will deploy to dev-docs.capisc.io when merged to main.

@beonde beonde merged commit ba255dd into main Jan 10, 2026
4 checks passed
@beonde beonde deleted the fix/broken-enterprise-link branch January 10, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant