generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
49 lines (42 loc) · 1.22 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
import { useRouter } from "next/router"
import { DocsThemeConfig, useConfig } from "nextra-theme-docs"
import packageJson from "package.json"
const config: DocsThemeConfig = {
logo: (
<span>
<b>use-cardano </b>
<small>
<i>v. {packageJson.dependencies["use-cardano"]}</i>
</small>
</span>
),
head: () => {
const { asPath } = useRouter()
const { frontMatter } = useConfig()
const title = frontMatter.title ? `${frontMatter.title} - Use Cardano` : "Use Cardano"
return (
<>
<title>{title}</title>
<link rel="icon" href="/favicon.png" />
<link rel="icon" href="/favicon.svg" />
<meta property="og:url" content={`https://www.use-cardano.dev${asPath}`} />
<meta property="og:title" content={title} />
<meta
property="og:description"
content={frontMatter.description || "Makes building Cardano dApps easy."}
/>
</>
)
},
project: {
link: "https://github.com/use-cardano/use-cardano",
},
// chat: {
// link: 'https://discord.com/use-cardano',
// },
docsRepositoryBase: "https://github.com/use-cardano/use-cardano-docs",
footer: {
text: "use-cardano",
},
}
export default config