forked from drizzle-team/drizzle-orm-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
60 lines (58 loc) · 1.55 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
54
55
56
57
58
59
60
import { DocsThemeConfig } from 'nextra-theme-docs';
import { useRouter } from 'next/router';
import TitleComponent from './components/TitleComponent/TitleComponent';
import Footer from './components/Footer/Footer';
import Logo from './components/Logo/Logo';
import Navigation from './components/Navigation/Navigation';
const config: DocsThemeConfig = {
banner: {
key: 'rqb',
text: (
<a href="https://driz.li/821days" target="_blank" rel="nofollow noreferrer">
🎉 Drizzle got FASTER! Read more →
</a>
),
},
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== '/') {
return {
titleTemplate: '%s - DrizzleORM',
description: 'Drizzle ORM | %s',
};
}
return {
titleTemplate: 'DrizzleORM - next gen TypeScript ORM',
description: 'Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind',
};
},
logo: <Logo />,
docsRepositoryBase: 'https://github.com/drizzle-team/drizzle-orm',
gitTimestamp: <></>,
main: ({ children }) => <div style={{ maxWidth: 1024, margin: '0 auto' }}>{children}</div>,
navbar: {
component: <Navigation />,
},
themeSwitch: {
},
darkMode: false,
nextThemes: {
defaultTheme: 'system',
},
sidebar: {
defaultMenuCollapseLevel: 1,
titleComponent: TitleComponent,
},
editLink: {
text: '',
},
head: (
<>
<link rel="icon" type="image/x-icon" href="/favicon.ico" sizes="any" />
</>
),
footer: {
component: <Footer />,
},
};
export default config;