-
Notifications
You must be signed in to change notification settings - Fork 3
/
theme.config.jsx
96 lines (92 loc) · 2.91 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
92
93
94
95
96
import { useRouter } from 'next/router'
import { useConfig } from 'nextra-theme-docs'
import React from 'react';
import 'katex/dist/katex.min.css';
import { InlineMath } from 'react-katex';
export default {
docsRepositoryBase: 'https://github.com/discrete-math-ch/discmath/tree/main',
logo:(
<p>
<InlineMath>{"\\mathcal{D}\\mathrm{isc}\\mathcal{M}\\mathrm{ath.ch}"}</InlineMath>
</p>
),
project: {
link: 'https://github.com/discrete-math-ch/discmath'
},
useNextSeoProps() {
const { asPath } = useRouter()
if (asPath !== '/') {
return {
titleTemplate: '%s – DiscMath'
}
}
},
head: function useHead() {
const { title } = useConfig()
const { route } = useRouter()
return (
<>
<meta name="msapplication-TileColor" content="#fff" />
<meta name="theme-color" content="#fff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="Discrete Mathematics"
/>
<meta
name="og:description"
content="Discrete Mathematics"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="" />
<meta name="twitter:site:domain" content="discmath" />
<meta name="twitter:url" content="discmath" />
<meta
name="og:title"
content={title ? title + ' – discmath' : 'discmath'}
/>
<meta name="og:image" content="" />
<meta name="apple-mobile-web-app-title" content="discmath" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.png" type="image/png" />
<link
rel="icon"
href="/favicon-dark.svg"
type="image/svg+xml"
media="(prefers-color-scheme: dark)"
/>
<link
rel="icon"
href="/favicon-dark.png"
type="image/png"
media="(prefers-color-scheme: dark)"
/>
</>
)
},
editLink: {
text: 'Edit this page on GitHub →',
},
feedback: {
content: 'Question? Give us feedback →',
labels: 'feedback'
},
search: {
placeholder: "Search..."
},
primaryHue: {dark:223, light:221},
primarySaturation: {
dark: 55,
light: 54
},
footer: {
text: (
<div className="flex w-full flex-col items-center sm:items-start">
<p className="mt-6 text-xs">
© {new Date().getFullYear()} some student TAs
</p>
</div>
)
},
}