Skip to content

docs: trim README density, add mkdocstrings API page#88

Merged
FBumann merged 2 commits into
mainfrom
worktree-docs-density-trim
Jun 15, 2026
Merged

docs: trim README density, add mkdocstrings API page#88
FBumann merged 2 commits into
mainfrom
worktree-docs-density-trim

Conversation

@FBumann

@FBumann FBumann commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Why

Follow-up to the docs-density discussion. PR #85 trimmed the docs pages but never touched the README, which still carried the bulk of the positioning + caveat-tax prose. This also moves the importable Python API onto an auto-generated page so the hand-maintained signature lists can't drift.

What

  • README — tighten the quickstart explainer, the repeats paragraph, and the re-run-safety blockquote; un-nest the parenthetical pileups in --fail-on/"where it sits"; cut the blockquote that just restated the comparison table. (199 → 187 lines, but the win is prose weight, not count.)
  • mkdocstrings for the Python API — new pure-markdown docs/api.md rendered from source docstrings (docstring_style: sphinx), replacing ~60 lines of hand-listed signatures/params in reference.md. Standalone page rather than inline in the reference notebook, because ::: directives aren't processed by nbconvert — this also keeps the API reference out of the executed (notebook) surface.
  • Drop doc-structure meta — removed "rendered live from --help", "curated here", "can't drift" asides, plus the internal "unlike pytest-benchmark…" rationale in the MemoryResult docstring now that mkdocstrings surfaces it to users.

Verification

Built api.md in isolation via mkdocstrings: 0 literal ::: leaks, every symbol rendered, docstring prose present. uv.lock intentionally omitted.

🤖 Generated with Claude Code

…meta

The README was never touched by the docs-trim PR (#85), so it still carried the
positioning + caveat-tax prose: tighten the quickstart, repeats, and re-run
blockquote; un-nest the parenthetical pileups; cut the table-restating blockquote.

Wire up mkdocstrings for the importable Python API: a new pure-markdown api.md
rendered from the source docstrings (sphinx style), replacing ~60 lines of
hand-maintained signature/param lists in reference.md that could drift. Kept as a
standalone page (not inline in the reference notebook, where ::: wouldn't be
processed) — this also keeps the API reference out of the executed surface.

Drop the meta-commentary explaining how the docs are built ("rendered live from
--help", "curated here", "can't drift"), including the internal "unlike
pytest-benchmark" rationale in the MemoryResult docstring now that mkdocstrings
surfaces it to users.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 pytest-benchmem | 🛠️ Build #33144659 | 📁 Comparing 42ad32a against latest (8230ddb)

  🔍 Preview build  

9 files changed · + 1 added · ± 8 modified

+ Added

± Modified

@FBumann FBumann enabled auto-merge (squash) June 15, 2026 11:27
@FBumann FBumann merged commit 7b99493 into main Jun 15, 2026
10 of 11 checks passed
@FBumann FBumann deleted the worktree-docs-density-trim branch June 15, 2026 11:29
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