tangled
alpha
login
or
join now
e.xyehr.cn
/
standard.site
forked from
standard.site/standard.site
0
fork
atom
Standard.site landing page built in Next.js
0
fork
atom
overview
issues
pulls
pipelines
Move llms.txt link from home nav to docs sidebar
aka.dad
1 month ago
cba394ce
8b1109d5
verified
This commit was signed with the committer's
known signature
.
aka.dad
SSH Key Fingerprint:
SHA256:PdzfUZ1lVRNyVHvD1/Qf90Kh5UImYQq1TxqaDtaDqSY=
+23
-14
3 changed files
expand all
collapse all
unified
split
app
components
docs
DocsSidebar.tsx
data
content.ts
docs-nav.ts
+22
-13
app/components/docs/DocsSidebar.tsx
···
29
29
{section.title}
30
30
</span>
31
31
<div className="flex flex-col gap-1">
32
32
-
{section.items.map((item) => (
33
33
-
<Link
34
34
-
key={item.href}
35
35
-
href={item.href}
36
36
-
className={`font-medium text-base tracking-tight py-0.5 ${
37
37
-
pathname === item.href
38
38
-
? 'text-base-content'
39
39
-
: 'text-muted-content'
40
40
-
} hover:text-base-content transition-colors`}
41
41
-
>
42
42
-
{item.label}
43
43
-
</Link>
44
44
-
))}
32
32
+
{section.items.map((item) => {
33
33
+
const isDocPage = item.href.startsWith('/docs/')
34
34
+
const className = `font-medium text-base tracking-tight py-0.5 ${
35
35
+
pathname === item.href
36
36
+
? 'text-base-content'
37
37
+
: 'text-muted-content'
38
38
+
} hover:text-base-content transition-colors`
39
39
+
40
40
+
if (!isDocPage) {
41
41
+
return (
42
42
+
<a key={item.href} href={item.href} className={className}>
43
43
+
{item.label}
44
44
+
</a>
45
45
+
)
46
46
+
}
47
47
+
48
48
+
return (
49
49
+
<Link key={item.href} href={item.href} className={className}>
50
50
+
{item.label}
51
51
+
</Link>
52
52
+
)
53
53
+
})}
45
54
</div>
46
55
</div>
47
56
))}
-1
app/data/content.ts
···
8
8
9
9
export const SECONDARY_NAV_ITEMS = [
10
10
{ label: 'Documentation', href: '/docs/introduction' },
11
11
-
{ label: 'llms.txt', href: '/llms.txt' },
12
11
]
13
12
14
13
export const EXTERNAL_LINKS = [
+1
app/data/docs-nav.ts
···
32
32
items: [
33
33
{ label: 'Implementations', href: '/docs/implementations' },
34
34
{ label: 'FAQ', href: '/docs/faq' },
35
35
+
{ label: 'llms.txt', href: '/llms.txt' },
35
36
],
36
37
},
37
38
]