-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
53 lines (51 loc) · 1.59 KB
/
theme.config.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { BracesIcon } from 'lucide-react'
import type { DocsThemeConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
head: (
<>
<link rel="canonical" href="https://aef.me/nextra-demo/" />
<meta name="robots" content="index,follow" />
<meta name="theme-color" content="#000" />
</>
),
logo: (props) => (
<div className="flex items-center space-x-2">
<BracesIcon className="w-5 h-5" />
<span className="font-mono font-semibold tracking-wide text-base" {...props}>
Nextra <em>Demo</em>
</span>
</div>
),
main: (props) => (
<>
<div
id="root"
className="min-h-[calc(100%_-_60px)] md:min-h-[calc(100%_-_44px)] md:mt-3 md:px-6 md:pt-3 md:border md:border-neutral-200 md:rounded-md dark:md:border-neutral-800"
{...props}
/>
<footer className="p-5 text-center">
<span className="text-sm text-neutral-400 dark:text-neutral-500">
MIT © {new Date().getFullYear()}
</span>
</footer>
</>
),
sidebar: {
toggleButton: true,
titleComponent: ({ title, type, route, ...rest }) => (
<span className="text-base font-medium tracking-wide md:text-sm" {...rest}>
{title}
</span>
)
},
project: {
link: 'https://github.com/adamelliotfields/nextra-demo'
},
editLink: { component: null },
feedback: { content: null },
footer: { component: null },
search: { placeholder: 'Search...' }
// also apply `hidden` on `nextra-toc` in globals.css to remove extra spacing
// toc: { component: null }
}
export default config