Skip to content

Commit 2409efe

Browse files
committed
reorder
1 parent c3e97de commit 2409efe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/svelte.dev/src/routes/+layout.server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const nav_links: NavigationLink[] = [
55
{
66
title: 'Docs',
77
slug: 'docs',
8-
sections: Object.values(docs.topics)
9-
.map((topic) => ({
8+
sections: [docs.topics['docs/svelte'], docs.topics['docs/kit'], docs.topics['docs/cli']].map(
9+
(topic) => ({
1010
title: topic.metadata.title,
1111
path: '/' + topic.slug, // this will make the UI show a flyout menu for the docs nav entry
1212
sections: topic.children.map((section) => ({
@@ -16,8 +16,8 @@ const nav_links: NavigationLink[] = [
1616
path: '/' + page.slug
1717
}))
1818
}))
19-
}))
20-
.sort((a, b) => a.title.localeCompare(b.title)) // Svelte first
19+
})
20+
)
2121
},
2222
{
2323
title: 'Tutorial',

0 commit comments

Comments
 (0)