Skip to content

docs(feat[api-style]): Visual improvements to API docs via gp-sphinx#658

Merged
tony merged 5 commits intomasterfrom
api-styling
Apr 11, 2026
Merged

docs(feat[api-style]): Visual improvements to API docs via gp-sphinx#658
tony merged 5 commits intomasterfrom
api-styling

Conversation

@tony
Copy link
Copy Markdown
Member

@tony tony commented Apr 6, 2026

Summary

Adopt the gp-sphinx Sphinx package stack for libtmux's API documentation. The net visual effect is card-style autodoc signatures with safety and scope badges, MyST cross-reference roles for Python objects, scoped section names in multi-page CLI docs, and polished IBM Plex typography — all landing together from the gp-sphinx 0.0.1a7 pre-release.

What's new

  • API-style autodoc layout via sphinx-autodoc-api-style — card layouts, badges, MyST roles for Python objects
  • Shared badge layer via sphinx-autodoc-badges — consistent XS/SM/LG/XL size variants with WCAG-AA contrast
  • Multi-page argparse scoping via sphinx-argparse-neo — CLI doc builds no longer emit duplicate label warnings (gp-sphinx#16)
  • Font polish via sphinx-fonts — IBM Plex Sans and Mono at full weight range, zero-CLS loading

Verification

  • uv run ruff check . --fix --show-fixes
  • uv run ruff format .
  • uv run mypy
  • uv run py.test --reruns 0 -vvv
  • just build-docs

All pass on the branch tip. See gp-sphinx 0.0.1 release notes for the full list of changes covering 0.0.1a1..0.0.1a7.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.55%. Comparing base (fd2b607) to head (aae24d4).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #658      +/-   ##
==========================================
- Coverage   46.63%   46.55%   -0.09%     
==========================================
  Files          22       22              
  Lines        2363     2363              
  Branches      389      389              
==========================================
- Hits         1102     1100       -2     
- Misses       1093     1094       +1     
- Partials      168      169       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

why: The sphinx-autodoc-api-style extension adds type and modifier badges
to autodoc entries, matching the visual language of
sphinx-autodoc-pytest-fixtures.

what:
- Add sphinx_autodoc_api_style to extra_extensions in docs/conf.py
…to 0.0.1a5

why: Wire in the standalone api-style package next to gp-sphinx; align dev/docs
pins and the lockfile with the latest gp-sphinx workspace releases.

what:
- Add sphinx-autodoc-api-style to dev and docs groups
- Add uv.sources path overrides for gp-sphinx, sphinx-autodoc-api-style,
  and sphinx-autodoc-pytest-fixtures
- Pin gp-sphinx, sphinx-autodoc-api-style, and sphinx-autodoc-pytest-fixtures
  to 0.0.1a5; regenerate uv.lock
tony added 2 commits April 11, 2026 08:56
why: Align dev docs dependencies with gp-sphinx 0.0.1a6 on PyPI.
what:
- Bump gp-sphinx ecosystem pins in pyproject.toml
- Regenerate uv.lock
why: Pick up the sphinx-argparse-neo multi-page duplicate-label
scoping fix landed in gp-sphinx PR #16 so docs builds on this
branch emit fewer duplicate label warnings.
what:
- Bump gp-sphinx and sibling package pins from 0.0.1a6 to 0.0.1a7
- Regenerate uv.lock
why: Capture the api-styling migration to the gp-sphinx package
stack in the unreleased notes.
what:
- Add a Documentation bullet under libtmux (unreleased)
  linking to the project PR
@tony tony changed the title docs(feat[api-style]): Enable API badge styling from gp-sphinx docs(feat[api-style]): Visual improvements to API docs via gp-sphinx Apr 11, 2026
@tony tony marked this pull request as ready for review April 11, 2026 14:03
@tony tony merged commit 8ac714b into master Apr 11, 2026
13 checks passed
@tony tony deleted the api-styling branch April 11, 2026 14:15
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