Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

docs(api): Add per-module pages and split aio - #205

Merged
tony merged 1 commit into
masterfrom
docs/204-api-module-pages
Dec 5, 2026
Merged

tony merged 1 commit into
masterfrom
docs/204-api-module-pages

Conversation

@tony

@tony tony commented Dec 5, 2026

Copy link
Copy Markdown
Member

Follow-up to #204 (Refs #203).

Summary

  • Breaks docs/api/aio.md into docs/api/aio/ (index, core, stream, pty).
  • Breaks docs/api/contrib_tmux.md and docs/api/contrib_syrupy.md into docs/api/contrib/ (index, syrupy, and tmux/{index,profile,capture,window,control}).
  • Adds dedicated API pages for every public module extracted in core(refactor): Split views, snapshot, dispatch, recorder, target, and aio (#203) #204: docs/api/views.md, docs/api/snapshot.md, docs/api/format.md, and docs/api/recorder.md.
  • Updates docs/redirects.txt (sphinxext-rediraffe) for api/tmux, api/contrib_tmux, and api/contrib_syrupy (noting api/aio -> api/aio/index shares the same dirhtml output path /api/aio/index.html).
  • Scopes docs/api/screen.md and docs/api/terminal.md to their owned symbols and canonicalizes Sphinx cross-references to owning modules across docs, docstrings, CHANGES, and MIGRATION.
  • Adds test_every_public_module_has_api_doc_page() in tests/test_libvt.py so every public module and package keeps a dedicated API page.

Verification

  • ruff check . & ruff format --check . (143 files)
  • ty check across linux (3.12, 3.15), darwin (3.14), and win32 (3.14)
  • pytest -q tests/test_libvt.py tests/test_testing.py tests/test_tmux.py README.md docs/ (258 passed)
  • sphinx-build -b dirhtml -W --keep-going docs (62 pages, 0 warnings, all 4 rediraffe redirects (good))

why: Give every public module and split package its own API reference
     page after #204 and earlier contrib splits while preserving existing
     docs URLs through Sphinx rediraffe redirects.

what:
- Break docs/api/aio.md into docs/api/aio/{index,core,stream,pty}.md
- Break docs/api/contrib_tmux.md and contrib_syrupy.md into
  docs/api/contrib/{index,syrupy}.md and
  docs/api/contrib/tmux/{index,profile,capture,window,control}.md
- Add dedicated pages for views, snapshot, format, and recorder
- Scope screen.md and terminal.md to owned symbols and canonicalize
  cross-references across docs, docstrings, CHANGES, and MIGRATION
- Update docs/redirects.txt for moved API paths and document the
  dirhtml same-path note for api/aio
- Add test_every_public_module_has_api_doc_page() in tests/test_libvt.py

Refs #203
@tony
tony merged commit d087b05 into master Dec 5, 2026
9 checks passed
@tony
tony deleted the docs/204-api-module-pages branch December 5, 2026 15:22

This branch was successfully deployed

1 active deployment
docs — 9f579acb Deployed Dec 5, 2026 by tony via build (3.14) #492
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