forked from
standard.site/standard.site
Standard.site landing page built in Next.js
1export interface DocsNavItem {
2 label: string
3 href: string
4}
5
6export interface DocsNavSection {
7 title: string
8 items: DocsNavItem[]
9}
10
11export const DOCS_NAV: DocsNavSection[] = [
12 {
13 title: 'Getting Started',
14 items: [
15 { label: 'Introduction', href: '/docs/introduction' },
16 { label: 'Quick Start', href: '/docs/quick-start' },
17 { label: 'Permissions', href: '/docs/permissions' },
18 { label: 'Verification', href: '/docs/verification' },
19 ],
20 },
21 {
22 title: 'Lexicons',
23 items: [
24 { label: 'Publication', href: '/docs/lexicons/publication' },
25 { label: 'Document', href: '/docs/lexicons/document' },
26 { label: 'Subscription', href: '/docs/lexicons/subscription' },
27 { label: 'Theme', href: '/docs/lexicons/theme' },
28 ],
29 },
30 {
31 title: 'Resources',
32 items: [
33 { label: 'Implementations', href: '/docs/implementations' },
34 { label: 'FAQ', href: '/docs/faq' },
35 { label: 'llms.txt', href: '/llms.txt' },
36 ],
37 },
38]
39
40// Helper to get all doc slugs for static generation
41export function getAllDocSlugs(): string[][] {
42 const slugs: string[][] = []
43
44 DOCS_NAV.forEach((section) => {
45 section.items.forEach((item) => {
46 if (item.href.includes('llms.txt')) return
47 const slug = item.href.replace('/docs/', '').split('/')
48 slugs.push(slug)
49 })
50 })
51
52 return slugs
53}