forked from jolbol1/shadcn-registry-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
63 lines (60 loc) · 1.57 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
61
62
63
import type { DocsThemeConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
import { useConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
head() {
const { asPath, defaultLocale, locale } = useRouter();
const { frontMatter } = useConfig();
const url =
"https://components.celeroncoder.com" +
(defaultLocale === locale ? asPath : `/${locale}${asPath}`);
return (
<>
<meta property="og:url" content={url} />
<meta
property="og:title"
content={
`${frontMatter.title} | celeroncoder's components` ||
"celeroncoder's components"
}
/>
<meta
property="og:description"
content={
frontMatter.description ||
"Collection of shadcn-ui/cli compatible components dump thing"
}
/>
<title>{frontMatter.title || "celeroncoder's components"}</title>
</>
);
},
project: {
link: "https://github.com/celeroncoder/components/",
},
docsRepositoryBase: "https://github.com/celeroncoder/components/tree/main",
logo: <span>🧱 celeroncoder's components</span>,
footer: {
content: (
<span>
MIT {new Date().getFullYear()} ©{" "}
<a href="https://celeroncoder.com" target="_blank">
celeroncoder
</a>
.
</span>
),
},
color: {
hue: 75,
saturation: 75,
lightness: 50,
},
navigation: false,
toc: {
float: true,
},
faviconGlyph: "🧱",
darkMode: true,
};
export default config;