docs(redesign): restructure documentation to CLI Frontend Skeleton pattern#1029
Merged
docs(redesign): restructure documentation to CLI Frontend Skeleton pattern#1029
Conversation
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1029 +/- ##
=======================================
Coverage 81.01% 81.02%
=======================================
Files 28 28
Lines 2629 2630 +1
Branches 492 492
=======================================
+ Hits 2130 2131 +1
Misses 368 368
Partials 131 131 β View full report in Codecov by Sentry. π New features to boost your workflow:
|
5189be0 to
131981e
Compare
β¦e URLs why: sphinx-design is needed for grid cards in the documentation landing pages and section indexes. Doc-site URLs added as inline comments for quick reference when managing dependencies. what: - Add sphinx-design to docs and dev dependency groups - Annotate all doc dependencies with their documentation URLs
β¦ttern why: The documentation mixed user-facing CLI docs with internal Python API reference at the same sidebar level, the landing page dumped the entire README (12 H1 headings), and contributor docs were scattered. This restructure follows the Python Documentation Skeletons spec where cli/ is the primary reference surface for a CLI package and the Python API is explicitly internal. what: Structure: - Move entire docs/api/ to docs/internals/api/ (Python API is internal for a CLI package) - Rename inner api/internals/ to api/_internal/ to avoid path stutter - Create topics/ directory with workflows, troubleshooting, library-vs-cli, and plugins (moved from plugins/) - Create project/ directory (contributing, code-style, releasing) - Move developing.md to project/contributing.md - Fold about.md (stale 2016 content) into topics/index.md as a brief tmuxinator/teamocil comparison note - Delete about.md New pages: - cli/exit-codes.md β exit codes for scripting and automation - cli/recipes.md β copy-pasteable command invocations - internals/index.md β explicit "not for end users" warning - internals/architecture.md β CLI dispatch flow diagram - topics/workflows.md β CI integration, scripting patterns - topics/troubleshooting.md β common shell/PATH/tmux issues - topics/library-vs-cli.md β when to use tmuxp CLI vs libtmux, concept mapping table, what the CLI can't express - project/code-style.md β ruff, mypy, NumPy docstrings - project/releasing.md β git tags, OIDC trusted publishing Landing page: - Compose standalone homepage (no README.md includes) - One-sentence intro, 3+2 grid cards, 3-command install, inline YAML example + tmuxp load command, demo GIF Section indexes: - cli/index.md: heading "CLI Reference", 2x3 card grid for key commands + exit-codes and recipes - topics/index.md: 2x2 card grid with comparison note - project/index.md: 2x2 card grid for contributor pages (3 items) - configuration/index.md: 1x3 card grid for reference subpages Navigation: - Sidebar primary: Quickstart, CLI Reference, Workspace files, Topics, Internals, Project, Changelog - Sidebar "More" caption: The Tao of tmux, Migration, Glossary - 35 redirects for all moved files (every individual api/ file covered) - README.md URLs updated to new doc structure paths, http β https Dependencies: - Add sphinx-design to docs and dev dependency groups - Annotate all doc dependencies with documentation site URLs conf.py: - Add sphinx_design extension - Add myst_heading_anchors = 4
131981e to
07c0ff9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructure tmuxp documentation to follow the CLI Frontend Documentation Skeleton pattern where
cli/is the primary reference surface and the Python API is explicitly internal.docs/api/moved todocs/internals/api/with explicit "not for end users" warning. Innerinternals/renamed to_internal/to avoid path stutter.exit-codes.mdandrecipes.mdpagesapi/file covered)Test plan
uv run sphinx-build -b html docs/ docs/_build/htmlbuilds without errorsuv run py.test docs/ README.mddoctests pass