Skip to content

docs: restructure docs pages for scannability + house docs-style skill - #847

Merged
Zach Dunn (zachdunn) merged 3 commits into
mainfrom
claude/docs-copy-improvement-9e80ff
Aug 25, 2026
Merged

docs: restructure docs pages for scannability + house docs-style skill#847
Zach Dunn (zachdunn) merged 3 commits into
mainfrom
claude/docs-copy-improvement-9e80ff

Conversation

@zachdunn

Copy link
Copy Markdown
Member

What

Rework the /docs hub and its eight subject pages to read like reputable
dev-tool docs (Stripe, Vercel, Wrangler) instead of prose-heavy pages, and
codify the conventions as a reusable house skill so future docs pages get the
same treatment.

Why

The docs pages leaned on heavy paragraphs, examples for every variation, a copy
button on nearly every line, fabricated terminal output, and setup buried below
usage. Individually the sentences were fine; the structure made the reader
work. Benchmarking against reputable CLI docs surfaced the patterns we were
missing — one-sentence intros, a single golden path (never two competing
commands up top), install-first ordering, and copy affordances reserved for
commands you actually paste.

Changes

Page rework (hub + 8 subject pages)

  • Lead with one short, verb-first intro + a linked capability list (Stripe style)
  • One golden-path command per flow; secondary commands demoted to a one-line pointer
  • Copy boxes reserved for pasted-verbatim commands; short/illustrative commands inline
  • Full multi-argument commands kept out of inline text (block or verb-only)
  • Fabricated terminal-output blocks removed; effects described in a sentence
  • Edge cases moved into notes; prose trimmed (net −123 lines across docs)
  • Two broken data-copy values on the galleries page fixed (they pasted invalid commands)

DocsLayout (site-wide)

  • Section-link # anchors moved to a hover-only left gutter (OpenRouter pattern)
  • The whole heading is now click-to-anchor, not just the # glyph
  • Added a .pointer style so demoted secondary commands read as secondary

New skill: skills/docs-page-style

  • Encodes the structure, intro voice, copy/inline-code rules, prose diet, and the
    full DocsLayout component vocabulary. The 8 subject-page rewrites in this PR
    were produced by agents following it — the test run also caught the real bugs
    and rule violations noted above.

Verify

  • All 9 docs pages serve 200; astro check clean; anchor ids other pages link to
    (#staging, #before-after, #attach, #annotate, #put) preserved.
  • No figures, commands, flags, or URLs invented — cross-checked against the CLI
    source and sibling pages.

Screenshots to follow.

…kill

Rework the /docs hub and its eight subject pages to lead with one golden-path
command, reserve copy boxes for commands pasted verbatim, keep full
multi-argument commands out of inline text, drop fabricated terminal output,
and cut prose. In DocsLayout, move the section-link anchor to a hover-only
left gutter, make the whole heading click-to-anchor, and add a .pointer style
so demoted secondary commands read as secondary.

Codify the conventions as skills/docs-page-style so future docs pages get the
same treatment.
@changeset-bot

changeset-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a9687a6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (2)
  • coderabbit:review
  • review
🚫 Excluded labels (none allowed) (1)
  • wip

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 15ff385b-9aec-4914-aab4-9051fe03e1e7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…block

Rewrite the /docs intro to lead with the concrete why (GitHub has no upload
API) before the capability list. On the reference page, replace five stacked
copy rows with a single aligned command block. Fold both refinements back into
skills/docs-page-style (reference-list-as-block; concrete-why earns its
sentences).
On the attach page's staging section, drop the redundant 'uploads staged' copy
box (the command is already named inline) so the example output block no longer
sits under a look-alike command box. On comment-config, render the .uploads.yml
example with Shiki (astro:components Code, vitesse-dark) so keys and values read
apart from the explanatory comments. Document both in skills/docs-page-style.
@zachdunn
Zach Dunn (zachdunn) merged commit 4b510b6 into main Aug 25, 2026
4 checks passed
@zachdunn
Zach Dunn (zachdunn) deleted the claude/docs-copy-improvement-9e80ff branch August 25, 2026 16:47
Zach Dunn (zachdunn) added a commit that referenced this pull request Aug 25, 2026
Apply the docs restructure (#847) scannability treatment to the
github-screenshots SKILL.md: split the bold-lead walls in Step 2 and the
dev-server flags paragraph in Step 1 into short sentences and bulleted lists.
Formatting only — every command, flag, and caveat is preserved.
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