Skip to content

docs: callout icons, line highlights, diffs and copy-link anchors - #336

Merged
ChristopherPHolder merged 1 commit into
mainfrom
docs/prose-polish
Nov 7, 2026
Merged

ChristopherPHolder merged 1 commit into
mainfrom
docs/prose-polish

Conversation

@ChristopherPHolder

Copy link
Copy Markdown
Collaborator

Closes #319

Callout icons

Tip (light bulb), Note (info), Important (flag) and Warning (triangle). They use the callout's own colour in both themes.

Line highlighting and diffs

  • json {4,11,12} title="…" highlights those lines with an accent background and left bar. Highlighting can open a span on one line and close it on a later one, so lines are split with open spans closed and reopened per line.
  • diff blocks mark + lines green and - lines red. Copy gives the resulting file: removed lines dropped, markers stripped.
  • Content: DevTools Recorder exports highlights the measurement steps it adds (steps 3 and 4), and init → "Update an existing rc file" now shows the change as a diff.

Copy-link heading anchors

The # after headings is now a link icon that slides in on hover. Clicking it scrolls to the section as before and also copies the section's full URL, with a "Link copied" toast at the bottom of the screen (role="status", so screen readers announce it).

Diff (light) Highlighted lines (dark) Link copied
Callout (desktop, dark) Callout (mobile, light)

Verification

  • Puppeteer: copying the diff gives valid JSON with "outPath": "tmp/measures" only. Clicking a heading's link icon puts …/docs/cli/init#scaffold-an-example-flow on the clipboard and shows the toast.
  • The interaction smoke test passes (21/21, desktop and mobile). Build and lint are clean, and there are no console errors.

Callouts get an icon per kind. Fenced blocks accept a {1,3-4} attribute
that highlights lines, and diff blocks mark added and removed lines
(copying a diff gives the resulting file). Heading anchors become a
link icon that copies the section's URL and confirms with a small
toast.

Content: the recorder export steps highlight the lines they add, and
the init page shows the rc file change as a diff.

Closes #319
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

❗❗❗ report generated by this PR ❗❗❗

☕ Order Coffee ☕

Date/Time: 2026-11-07 13:02

Step Name Gather Mode Performance Accessibility Best Practices Seo Agentic Browsing
🧭 Navigate to coffee cart navigation 86 93 100 83 50
☕ Select coffee timespan 17/17 - 8/8 - -
✔ Coffee selected snapshot Ø 1/1 16/18 4/4 3/5 1/3
🛒 Checkout order timespan 19/19 - 8/8 - -
🧾 Order checked out snapshot Ø 1/1 19/20 4/4 3/5 1/3
💌 Submit order timespan 18/18 - 8/8 - -
📧 Order submitted snapshot Ø 1/1 20/22 4/4 3/5 1/3
🧭 Navigate to github navigation 86 92 100 83 50

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

☕ Order Coffee ☕

Date/Time: 2026-11-07 13:02

Step Name Gather Mode Performance Accessibility Best Practices Seo Agentic Browsing
🧭 Navigate to coffee cart navigation 97 93 100 83 50
☕ Select coffee timespan 17/17 - 8/8 - -
✔ Coffee selected snapshot Ø 1/1 16/18 4/4 3/5 1/3
🛒 Checkout order timespan 19/19 - 8/8 - -
🧾 Order checked out snapshot Ø 1/1 19/20 4/4 3/5 1/3
💌 Submit order timespan 18/18 - 8/8 - -
📧 Order submitted snapshot Ø 1/1 20/22 4/4 3/5 1/3
🧭 Navigate to github navigation 95 92 100 83 50

@ChristopherPHolder
ChristopherPHolder merged commit 557ab76 into main Nov 7, 2026
5 checks passed
@ChristopherPHolder
ChristopherPHolder deleted the docs/prose-polish branch November 7, 2026 13:05
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.

docs: callout icons, line highlighting and copy-link heading anchors

1 participant