Skip to content

Add automatic API reference (GSI-1892)#220

Merged
Cito merged 8 commits intomainfrom
feature/add-auto-api-reference-gsi-1892
Feb 20, 2026
Merged

Add automatic API reference (GSI-1892)#220
Cito merged 8 commits intomainfrom
feature/add-auto-api-reference-gsi-1892

Conversation

@Cito
Copy link
Member

@Cito Cito commented Feb 17, 2026

This PR adds an automatically generated API reference to the existing documentation.

I tried using mkdocs-autoapi first, but this looked ugly. Also, pydantic fields did not show up. In principle, griffe_pydantic should do this, but it did not work properly for me.

Therefore, I decided to use pdoc instead (as a separate build step from mkdocs) which looks much nicer.

The documentation can be built with CI or with tox -e docs. This will first generate the API reference under /api which makes it possible to link to it from the narrative documentation without target warnings when running mkdocs build. Afterwards, the API reference is moved from the docs directory to the build (site) directory to have a functional website that is deployed via GitHub pages.

The PR also fixes some docstring issues that showed up as warnings when running mkdocs-autoapi.

@coveralls
Copy link

coveralls commented Feb 17, 2026

Pull Request Test Coverage Report for Build 22232393439

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.932%

Totals Coverage Status
Change from base Build 22110184979: 0.0%
Covered Lines: 3392
Relevant Lines: 3650

💛 - Coveralls

@Cito Cito requested a review from TheByronHimes February 18, 2026 06:55
TheByronHimes
TheByronHimes previously approved these changes Feb 20, 2026
@Cito
Copy link
Member Author

Cito commented Feb 20, 2026

Note: To test this, run tox -e docs and python -m http.server and browse to the site directory.

@Cito Cito requested a review from TheByronHimes February 20, 2026 16:42
@Cito Cito merged commit 3b55bd7 into main Feb 20, 2026
8 checks passed
@Cito Cito deleted the feature/add-auto-api-reference-gsi-1892 branch February 20, 2026 17:02
@Cito Cito changed the title Add automatic API reference GSI-1892 Add automatic API reference (GSI-1892) Feb 20, 2026
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.

3 participants