Skip to content

Commit 79820ad

Browse files
doc: fix the few non-unique id attributes on headings in the docs
Since we're now providing visible anchor links, it's important that ID attributes on headings are genuinely unique.
1 parent 710940d commit 79820ad

File tree

5 files changed

+116
-116
lines changed

5 files changed

+116
-116
lines changed

doc/_stdlib_gen/stdlib.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ local fieldDescription(f) =
4343

4444
local fieldDoc(f, prefix) =
4545
[
46-
in_panel(html.h4({ id: f.name }, prefix + '.' + f.name + fieldParams(f))),
46+
in_panel(html.h4({ id: 'std-' + f.name }, prefix + '.' + f.name + fieldParams(f))),
4747
in_panel([
4848
if std.objectHas(f, 'availableSince') then (
4949
html.p(

doc/learning/getting_started.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ <h3 id="example">Example</h3>
106106
<div class="hgroup">
107107
<div class="hgroup-inline">
108108
<div class="panel">
109-
<h3 id="text_output">Generating non-JSON output</h3>
109+
<h3 id="text-output">Generating non-JSON output</h3>
110110
</div>
111111
<div style="clear: both"></div>
112112
</div>

doc/learning/tools.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ <h2 id="formatter">Formatter Demo</h2>
169169
<div class="hgroup">
170170
<div class="hgroup-inline">
171171
<div class="panel">
172-
<h2 id="formatter">Linter</h2>
172+
<h2 id="formatter-linter">Linter</h2>
173173
</div>
174174
<div style="clear: both"></div>
175175
</div>
@@ -194,7 +194,7 @@ <h2 id="formatter">Linter</h2>
194194
<div class="hgroup">
195195
<div class="hgroup-inline">
196196
<div class="panel">
197-
<h2 id="formatter">Bazel Jsonnet Rules</h2>
197+
<h2 id="formatter-bazel">Bazel Jsonnet Rules</h2>
198198
</div>
199199
<div style="clear: both"></div>
200200
</div>

doc/learning/tutorial.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ <h2 id="parameterize-entire-config">Parameterize Entire Config</h2>
551551
<div class="hgroup">
552552
<div class="hgroup-inline">
553553
<div class="panel">
554-
<h3 id="parameterize-entire-config">External variables</h3>
554+
<h3 id="external-variables">External variables</h3>
555555
</div>
556556
<div style="clear: both"></div>
557557
</div>
@@ -631,7 +631,7 @@ <h3 id="parameterize-entire-config">External variables</h3>
631631
<div class="hgroup">
632632
<div class="hgroup-inline">
633633
<div class="panel">
634-
<h3 id="parameterize-entire-config">Top-level arguments</h3>
634+
<h3 id="top-level-arguments">Top-level arguments</h3>
635635
</div>
636636
<div style="clear: both"></div>
637637
</div>
@@ -714,7 +714,7 @@ <h3 id="parameterize-entire-config">Top-level arguments</h3>
714714
<div class="hgroup">
715715
<div class="hgroup-inline">
716716
<div class="panel">
717-
<h2 id="oo">Object-Orientation</h2>
717+
<h2 id="object-orientation">Object-Orientation</h2>
718718
</div>
719719
<div style="clear: both"></div>
720720
</div>

0 commit comments

Comments
 (0)