feat(docs): share copyable code examples - #190
Conversation
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — fdbe9b55
Blanket team auto-approval is intentional. The merge gates are CI and codex-p1.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-10-02T02:02:06Z
✅ Deploy Preview for tangle-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
tangletools
left a comment
There was a problem hiding this comment.
✅ Auto-approved PR — 3f2debf2
Blanket team auto-approval is intentional. The merge gates are CI and codex-p1.
No automated review runs on this PR. This approval rests on the rule above alone.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-10-02T02:07:05Z
|
Production verified after merge On The source module retains readable examples without escaping newlines into URLs in the documentation link scanner. Build, link, lint, format, copy and endpoint checks passed on the final head. Before/after images and the interaction recording remain in the PR's evidence links. Screenshots were opened and inspected. The recording was captured, but viewer playback could not be checked because browser URL policy rejected the local media URL. |
Summary of changes
Jobs source excerpts and Sandbox examples now share line numbers, syntax highlighting, and a Copy button. Copy returns the raw code, preserves indentation, and reports clipboard failures. The Jobs excerpts link to the exact source revision and correct line ranges.
All 17 existing Sandbox snippets remain byte-identical, including 12 standalone TypeScript examples. Source headers use filenames or language names.
Validation: TypeScript, Next lint, harness-copy guard, formatting, and the full 289-page production build passed. Chromium checked Jobs, Quickstart, and SDK Reference at 1440px and 390px in light and dark mode. All 19 shared blocks copied without line numbers; denied clipboard access showed an error; every checked page stayed within the viewport.
Before captures:
https://docs.tangle.tools, mainc6d445d8. After captures: GTR production build served on the owned local preview port. Live deployment verification follows merge.Copy interaction video, 4× playback: Jobs → Quickstart → SDK Reference. The uncut recording and complete state receipts remain in
/tmp/docs-code-display-evidence-20261001/on GTR.