forked from zeroth-robotics/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
36 lines (33 loc) · 1.09 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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router';
import { useConfig } from 'nextra-theme-docs';
const config: DocsThemeConfig = {
logo: <span>OpenLCH Docs</span>,
project: {
link: 'https://github.com/Zeroth-Robotics/OpenLCH',
},
chat: {
link: 'https://discord.com/invite/kscale',
},
docsRepositoryBase: 'https://github.com/jingxiangmo/openlch-docs/tree/main',
footer: {
text: 'OpenLCH, a K-Scale Labs project.',
},
head: () => {
const { asPath, defaultLocale, locale } = useRouter();
const { frontMatter } = useConfig();
const url =
'https://docs.kscale.dev' +
(defaultLocale === locale ? asPath : `/${locale}${asPath}`);
return (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:url" content={url} />
<meta property="og:title" content={'OpenLCH Docs'} />
<meta property="og:description" content={'OpenLCH is an open source humanoid building guide'} />
</>
);
}
}
export default config