-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.jsx
91 lines (88 loc) · 2.81 KB
/
theme.config.jsx
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { useConfig } from "nextra-theme-docs";
import Image from "next/image";
const Head = () => {
const { frontMatter, title } = useConfig();
return (
<>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content={
frontMatter?.description ||
"FTA (Fast TypeScript Analyzer) is a super-fast TypeScript static analysis tool written in Rust. It captures static information about TypeScript code and generates easy-to-understand analytics that tell you about complexity and maintainability issues that you may want to address."
}
/>
<meta
name="og:description"
content={
frontMatter.description ||
"FTA (Fast TypeScript Analyzer) is a super-fast TypeScript static analysis tool written in Rust. It captures static information about TypeScript code and generates easy-to-understand analytics that tell you about complexity and maintainability issues that you may want to address."
}
/>
<meta
name="og:title"
content={title ? title + " – FTA" : "FTA: Fast TypeScript Analyzer"}
/>
<meta name="apple-mobile-web-app-title" content="FTA" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css"
media="print"
onLoad="this.media='all'"
/>
</>
);
};
const config = {
project: {
link: "https://github.com/sgb-io/fta",
},
logo: (
<>
<Image src="/fta-logo.png" width={74} height={45} alt="FTA" />
<span style={{ marginLeft: 10 }}>Fast TypeScript Analyzer</span>
</>
),
footer: {
text: (
<span>
<a href="https://ftaproject.dev" target="_blank">
FTA Docs
</a>
, powered by Nextra. FTA is supported by{" "}
<strong>
<a href="https://savingtool.co.uk">Saving Tool UK</a>
</strong>{" "}
- the UK's most comprehensive personal finance tool.
</span>
),
},
useNextSeoProps: () => {
return {
titleTemplate: "%s – FTA",
};
},
head: <Head />,
};
export default config;