We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3e97de commit 2409efeCopy full SHA for 2409efe
apps/svelte.dev/src/routes/+layout.server.ts
@@ -5,8 +5,8 @@ const nav_links: NavigationLink[] = [
5
{
6
title: 'Docs',
7
slug: 'docs',
8
- sections: Object.values(docs.topics)
9
- .map((topic) => ({
+ sections: [docs.topics['docs/svelte'], docs.topics['docs/kit'], docs.topics['docs/cli']].map(
+ (topic) => ({
10
title: topic.metadata.title,
11
path: '/' + topic.slug, // this will make the UI show a flyout menu for the docs nav entry
12
sections: topic.children.map((section) => ({
@@ -16,8 +16,8 @@ const nav_links: NavigationLink[] = [
16
path: '/' + page.slug
17
}))
18
19
- }))
20
- .sort((a, b) => a.title.localeCompare(b.title)) // Svelte first
+ })
+ )
21
},
22
23
title: 'Tutorial',
0 commit comments