Commit 26f0cc4
authored
Add unique IDs to section headings in Aliki template (#1603)
The Aliki TOC is generated by JavaScript that scans h1/h2/h3 elements
with IDs. Section title h2 elements had no ID, so they were invisible to
the TOC. Meanwhile, h3 IDs like "constants" and
"public-instance-methods" were duplicated across sections.
Prefix all heading IDs with the section's aref to make them unique. Move
the section ID from the `<section>` element to the `<h2>` so the TOC
picks it up naturally.
<img width="250" height="291" alt="Screenshot 2026-02-08 at 10 20 30"
src="https://github.com/user-attachments/assets/b399fb90-ff1a-46b9-838c-61576c6acc2c"
/>
Fixes #15981 parent 0566dac commit 26f0cc4
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments