Skip to content

Commit cdcef08

Browse files
committed
docs: rename learn navigation section
1 parent ae77528 commit cdcef08

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/build-docs.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function isEcosystemRoute(href) {
182182
}
183183

184184
const navigationGroups = [
185-
{ label: "Learn", include: (page) => page.href.startsWith("/docs/learn/") },
185+
{ label: "Getting Started", include: (page) => page.href.startsWith("/docs/learn/") },
186186
{ label: "Reference", include: (page) => page.href.startsWith("/docs/reference/") && !isEcosystemRoute(page.href) },
187187
{ label: "Ecosystem", include: (page) => isEcosystemRoute(page.href) },
188188
{ label: "Contribute", include: (page) => page.href.startsWith("/docs/contribute/") },

‎tests/docs-build.test.mjs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ test("documentation generator emits the main routes", async () => {
7373
assert.match(rssHtml, /<aside class="docs-sidebar">/);
7474
assert.match(rssHtml, /aria-label="Documentation navigation"/);
7575
assert.match(rssHtml, /href="\/docs\/reference\/rss\/" aria-current="page"/);
76+
assert.match(rssHtml, /<h2>Getting Started<\/h2>/);
77+
assert.doesNotMatch(rssHtml, /<h2>Learn<\/h2>/);
7678
assert.match(rssHtml, /<h2>Ecosystem<\/h2>/);
7779
assert.match(rssHtml, /href="\/docs\/reference\/pd-edge\/">pd-edge<\/a><a href="\/docs\/reference\/pd-edge\/full-dag\/">Full DAG Graphs<\/a>/);
7880
assert.doesNotMatch(rssHtml, />[^<]*reference<\/h1>/i);

0 commit comments

Comments
 (0)