Skip to content

docs(api) Link API reference first mentions#558

Merged
tony merged 4 commits into
masterfrom
doc-improvements
Jul 4, 2026
Merged

docs(api) Link API reference first mentions#558
tony merged 4 commits into
masterfrom
doc-improvements

Conversation

@tony

@tony tony commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Retitle API reference headings so module names are introduced through linked {mod} prose instead of plain heading literals.
  • Link the PrivatePath explanatory body introduction with its {class} target.

Verification

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

Notes: the docs build exits 0 and continues to report the pre-existing duplicate-label warnings under docs/cli.

tony added 2 commits July 4, 2026 13:09
why: API reference pages should let their first prose mention carry
its Sphinx role target instead of introducing module names as plain
literals in headings.

what:
- Remove module literal suffixes from public API headings
- Retitle internal CLI module pages around their command role
- Keep generated reference directives and prose links unchanged
why: The body introduction should point readers at the rendered class
reference when it explains the internal path-redaction helper.

what:
- Link the PrivatePath explanatory intro with a class role
- Leave later literal mentions and code examples unchanged
@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.80%. Comparing base (0cdba9c) to head (5fb15de).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #558   +/-   ##
=======================================
  Coverage   83.80%   83.80%           
=======================================
  Files          30       30           
  Lines        4389     4389           
  Branches      881      881           
=======================================
  Hits         3678     3678           
  Misses        471      471           
  Partials      240      240           

☔ View full report in Codecov by Harness.
📢 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.

tony added 2 commits July 4, 2026 13:24
why: The aggregate CLI reference rendered the same generated example
anchors as the individual command pages, leaving the docs build with
duplicate-label warnings.

what:
- Suppress the generated examples on the aggregate CLI reference
- Keep per-command pages as the canonical example anchors
why: The legacy completion snippets are shell startup file contents,
so they should read as exact file lines rather than loosely spaced
interactive commands.

what:
- Remove blank lines from bash and zsh startup snippets
- Keep shell-specific fences for startup file contents
@tony tony merged commit c1f3905 into master Jul 4, 2026
8 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