-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
44 lines (41 loc) · 1.43 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
import {
useConfig as getConfig,
type DocsThemeConfig,
} from "nextra-theme-docs";
const config: DocsThemeConfig = {
logo: <h1 className="flex items-center gap-2 font-medium">FactoryJS</h1>,
docsRepositoryBase:
"https://github.com/factory-js/factory-js.github.io/tree/main",
project: {
link: "https://github.com/factory-js/factory-js",
},
footer: {
content: (
<span className="text-sm">© {new Date().getFullYear()} FactoryJS</span>
),
},
head: () => {
const { frontMatter } = getConfig();
const title = frontMatter["title"] as unknown;
const description =
"FactoryJS is a lightweight, type-safe object generation library for testing. It is independent of any specific framework, making it versatile for everything from unit testing to E2E testing and seed data generation.";
return (
<>
<title>
{typeof title === "string"
? `${title} | FactoryJS`
: "FactoryJS - The object generator for testing"}
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content={description} />
<meta name="og:description" content={description} />
<meta
property="og:image"
content="https://factory-js.github.io/og-image.png"
/>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</>
);
},
};
export default config;