Commit eb770e4
fix(doc-page): restore deep-link scrolling and show AsciiDoc section anchor icons
Two related fixes for the long-form workflow pages (brownfield, spec-driven-development, brownfield-experiment-report, etc.):
1. Deep links like /brownfield#phase-0-5-socratic-code-theory-recovery
landed on the page but did not scroll to the section. The pre-rendered
HTML has the section IDs, so the browser jumps there initially — but
then the SPA boots, doc-page.js replaces #doc-content with a fresh
"Loading..." shell, and the scroll target is destroyed. After the
async fragment fetch completes, we now re-scroll to the URL hash.
2. Asciidoctor already emits <a class="anchor" href="#id"> before each
heading (sectanchors:true is set in render-docs.js), but the link was
invisible. Add the AsciiDoc-standard § symbol that fades in on heading
hover, so readers can grab a link to any section. scroll-margin-top
keeps the heading from disappearing behind the sticky header when the
user follows such a link.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 41d856d commit eb770e4
2 files changed
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
67 | 79 | | |
68 | 80 | | |
69 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
0 commit comments