Skip to content

Commit ddc5f95

Browse files
committed
fix(docs): plain nav labels
The sidebar group, TOC, and footer labels were h4 and h5 headings, which broke the heading outline of each page. They are plain labels now, and look the same.
1 parent 2ed8e8c commit ddc5f95

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎docs/assets/css/docs.css‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
margin-bottom: 22px;
2222
}
2323

24-
.grp h4 {
24+
.grp-label {
2525
display: flex;
2626
align-items: center;
2727
gap: 9px;
@@ -33,7 +33,7 @@
3333
color: var(--ink);
3434
}
3535

36-
.grp h4 i {
36+
.grp-label i {
3737
width: 12px;
3838
height: 12px;
3939
border: 2px solid var(--line);
@@ -398,7 +398,7 @@
398398
padding: 16px 16px 12px;
399399
}
400400

401-
.toc h5 {
401+
.toc-label {
402402
margin: 0 0 10px;
403403
font: 800 11px/1 var(--display);
404404
letter-spacing: .12em;

‎docs/assets/css/home.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@
563563
color: var(--muted);
564564
}
565565

566-
.fgrid h4 {
566+
.fgrid-label {
567567
margin: 6px 0 14px;
568568
font: 800 11px/1 var(--display);
569569
letter-spacing: .12em;

‎docs/content/index.hbs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ bongo.config.ts <span>site, helpers, plugins</span></pre>
115115
<div class="wrap">
116116
<div class="fgrid">
117117
<div><a class="brand" href="/" aria-label="bongo home">{{#partial src="wordmark"}}</a><p>A static site generator built on Rolldown and LightningCSS.</p></div>
118-
<div><h4>Packages</h4><a href="https://www.npmjs.com/package/@bongo/bongo"><code>bongo</code></a><a href="https://www.npmjs.com/package/@bongo/markdown"><code>@bongo/markdown</code></a><a href="https://www.npmjs.com/package/@bongo/feed"><code>@bongo/feed</code></a><a href="https://www.npmjs.com/package/create-bongo"><code>create-bongo</code></a></div>
119-
<div><h4>Docs</h4><a href="/quick-start/">Quick start</a><a href="/templates/">Templates</a><a href="/config/">Config</a><a href="/client-runtime/">Client runtime</a></div>
120-
<div><h4>Project</h4><a href="https://github.com/lukeed/bongo">GitHub</a><a href="https://github.com/lukeed/bongo/issues">Issues</a><a href="https://github.com/lukeed/bongo/releases">Releases</a></div>
118+
<div><div class="fgrid-label">Packages</div><a href="https://www.npmjs.com/package/@bongo/bongo"><code>bongo</code></a><a href="https://www.npmjs.com/package/@bongo/markdown"><code>@bongo/markdown</code></a><a href="https://www.npmjs.com/package/@bongo/feed"><code>@bongo/feed</code></a><a href="https://www.npmjs.com/package/create-bongo"><code>create-bongo</code></a></div>
119+
<div><div class="fgrid-label">Docs</div><a href="/quick-start/">Quick start</a><a href="/templates/">Templates</a><a href="/config/">Config</a><a href="/client-runtime/">Client runtime</a></div>
120+
<div><div class="fgrid-label">Project</div><a href="https://github.com/lukeed/bongo">GitHub</a><a href="https://github.com/lukeed/bongo/issues">Issues</a><a href="https://github.com/lukeed/bongo/releases">Releases</a></div>
121121
</div>
122122
<div class="legal"><span>MIT license</span><span>bongo v{{ $data.release.version }}</span></div>
123123
</div>

‎docs/layouts/single.hbs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<aside class="side" id="side" aria-label="Docs" transition:persist="sidebar" transition:name="sidebar">
77
{{#each groups as group}}
88
<div class="grp" style="--c:var(--{{ group.color }})">
9-
<h4><i></i>{{ group.title }}</h4>
9+
<div class="grp-label"><i></i>{{ group.title }}</div>
1010
{{#each group.pages as link}}
1111
<a href="{{ link.path }}"{{#if link.current}} aria-current="{{ link.current }}"{{/if}}>{{#if link.title.startsWith('@')}}<code>{{ link.title }}</code>{{#else}}{{ link.title }}{{/if}}</a>
1212
{{/each}}
@@ -47,7 +47,7 @@
4747
{{#if heads.length}}
4848
<aside class="toc" id="toc" aria-label="On this page">
4949
<div class="toc-box">
50-
<h5>On this page</h5>
50+
<div class="toc-label">On this page</div>
5151
<ol>
5252
{{#each heads as head}}
5353
<li><a href="#{{ head.id }}">{{{ head.html }}}</a></li>

0 commit comments

Comments
 (0)