-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paththeme.config.tsx
95 lines (91 loc) · 2.29 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
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
92
93
94
95
import React from "react"
import { DocsThemeConfig } from "nextra-theme-docs"
import MyProjects from "./components/MyProjects"
const logo = (
<span style={{ fontSize: 20, fontWeight: 700 }}>
IOPaint
<style jsx>{`
span {
padding: 0.5rem 0.5rem 0.5rem 0;
mask-image: linear-gradient(
60deg,
black 25%,
rgba(0, 0, 0, 0.2) 50%,
black 75%
);
mask-size: 400%;
mask-position: 0%;
}
span:hover {
mask-position: 100%;
transition: mask-position 1s ease, -webkit-mask-position 1s ease;
}
`}</style>
</span>
)
const gitRepo = "https://github.com/Sanster/IOPaint"
const config: DocsThemeConfig = {
logo,
logoLink: gitRepo,
project: {
link: gitRepo,
},
docsRepositoryBase: "https://github.com/Sanster/IOPaint-docs",
sidebar: {
defaultMenuCollapseLevel: 0,
},
toc: {
extraContent: <MyProjects />,
},
footer: {
component: <></>,
text: "",
},
primaryHue: 48,
darkMode: true,
nextThemes: {
defaultTheme: "dark",
},
chat: {
link: "https://Ko-fi.com/Z8Z1CZJGY",
icon: (
<img
style={{ height: 32 }}
src="https://storage.ko-fi.com/cdn/brandasset/kofi_button_dark.png"
/>
),
},
head: (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="IOPaint" />
<meta
property="og:description"
content="Image Inpainting Tool Powered SOTA AI Model"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="https://iopaint.com/" />
<meta property="twitter:url" content="https://iopaint.com/" />
<meta name="twitter:title" content="IOPaint" />
<meta
name="twitter:description"
content="Image Inpainting Tool Powered SOTA AI Model"
/>
<meta
name="twitter:image"
content="https://raw.githubusercontent.com/Sanster/iopaint-docs/main/public/app.png"
/>
<script
defer
src="/stats/script.js"
data-website-id="756bf011-2d5c-4d85-afae-3e4dae7e8bc2"
></script>
</>
),
useNextSeoProps() {
return {
titleTemplate: "%s – IOPaint",
}
},
}
export default config