-
Notifications
You must be signed in to change notification settings - Fork 3
/
theme.config.tsx
74 lines (70 loc) · 2.2 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
import React from 'react'
import { PartialDocsThemeConfig } from './src/theme/constants'
import { useConfig } from './src/theme'
import { getGitIssueUrl } from './src/theme/utils'
import { useRouter } from 'next/router'
const LOCALE = 'fr-fr'
const config: PartialDocsThemeConfig = {
logo: <span>Archipel Project</span>,
project: {
link: 'https://github.com/archipel-project',
},
docsRepositoryBase: 'https://github.com/archipel-project/docs',
primaryHue: {
dark: 40,
light: 40
},
toc: {
float: true,
title: 'Sur cette page'
},
footer: {
text: 'MIT 2023 © Archipel Project'
},
editLink: {
text: 'Modifier cette page'
},
notFound: {
content: 'Soumettre un ticket pour signaler un lien cassé →',
},
feedback: {
content: 'Une question ? Faites-nous un retour →',
useLink() {
const config = useConfig()
return getGitIssueUrl({
labels: config.feedback.labels,
repository: config.docsRepositoryBase,
title: `Feedback pour “${config.title}”`
})
}
},
gitTimestamp: function GitTimestamp({ timestamp }) {
const { locale = LOCALE } = useRouter()
return (
<>
Dernière mise à jours le{' '}
<time dateTime={timestamp.toISOString()}>
{timestamp.toLocaleDateString(locale, {
day: 'numeric',
month: 'long',
year: 'numeric'
})}
</time>
</>
)
},
useNextSeoProps: () => ({ titleTemplate: '%s – Archipel Project' }),
head: (
<>
<meta name="msapplication-TileColor" content="#222129" />
<meta httpEquiv="Content-Language" content="fr" />
<meta name="description" content="Archipel Project: documentation et base de connaissance du projet" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@shuding_" />
<meta property="og:title" content="Archipel Project: documentation et base de connaissance du projet" />
<meta property="og:description" content="Archipel Project: documentation et base de connaissance du projet" />
<meta name="apple-mobile-web-app-title" content="Archipel Project" />
</>
),
}
export default config