Skip to content

Fix empty documentation pages (API reference, license, basic example)#90

Merged
keithlostracco merged 1 commit into
mainfrom
fix-docs
May 28, 2026
Merged

Fix empty documentation pages (API reference, license, basic example)#90
keithlostracco merged 1 commit into
mainfrom
fix-docs

Conversation

@keithlostracco
Copy link
Copy Markdown
Contributor

The docs site deployed at the v0.12.1 release had three blank pages. Root causes and fixes:

  • API Reference: the nanobind .pyi stub (previously in install/stubs/, removed during cleanup) was gone, so sphinx-autoapi had no source to document for the compiled module. Regenerate it as src/touchpy/init.pyi and add src/touchpy/py.typed so it ships in the wheel for IDE type hints.
  • sphinx-autoapi 3.5 is incompatible with astroid 4 (calls AstroidBuilder() without the now-required manager arg); pin astroid<4 in docs/requirements.txt.
  • Set autoapi_file_patterns to read the .pyi over the re-exporting init.py.
  • License: fix include path from the removed install/LICENSE.md to ../../LICENSE.md.
  • Basic Example: replace the placeholder with a literalinclude of examples/01_load_comp_basic.py.

Docs-only change; no package version bump. Redeploy via the Documentation workflow (workflow_dispatch).

The docs site deployed at the v0.12.1 release had three blank pages.
Root causes and fixes:

- API Reference: the nanobind .pyi stub (previously in install/stubs/,
  removed during cleanup) was gone, so sphinx-autoapi had no source to
  document for the compiled module. Regenerate it as src/touchpy/__init__.pyi
  and add src/touchpy/py.typed so it ships in the wheel for IDE type hints.
- sphinx-autoapi 3.5 is incompatible with astroid 4 (calls AstroidBuilder()
  without the now-required manager arg); pin astroid<4 in docs/requirements.txt.
- Set autoapi_file_patterns to read the .pyi over the re-exporting __init__.py.
- License: fix include path from the removed install/LICENSE.md to ../../LICENSE.md.
- Basic Example: replace the placeholder with a literalinclude of
  examples/01_load_comp_basic.py.

Docs-only change; no package version bump. Redeploy via the Documentation
workflow (workflow_dispatch).
@keithlostracco keithlostracco merged commit 307f04c into main May 28, 2026
2 checks passed
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