-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy paththeme.config.tsx
57 lines (55 loc) · 1.37 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
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import Logo from "./components/Logo";
const config: DocsThemeConfig = {
logo: <Logo />,
logoLink: "https://cds-design.github.io/",
useNextSeoProps() {
return {
titleTemplate: '%s - CDS',
additionalLinkTags: [
{
rel: 'icon',
href: './favicon.svg'
},
]
}
},
sidebar: {
defaultMenuCollapseLevel: 1,
toggleButton: true,
},
head: <>
<script type="text/javascript">
{`(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "h19w430f3j");`}
</script>
</>,
primaryHue: {
dark: 180,
light: 220,
},
project: {
link: "https://github.com/cds-design/CDS",
},
// chat: {
// link: "https://discord.com",
// },
// faviconGlyph: "C",
docsRepositoryBase: "https://github.com/cds-design/docs/tree/main",
footer: {
text: (
<span>
MIT {new Date().getFullYear()} ©{' '}
<a href="https://github.com/ve-r-ve" target="_blank">
Verve
</a>
.
</span>
)
}
};
export default config;