-
Notifications
You must be signed in to change notification settings - Fork 3
/
theme.config.tsx
73 lines (70 loc) · 1.88 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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from "next/router"
// @todo add svg logo
const logo = (
<>
<span style={{ marginLeft: '.4em', fontWeight: 800 }}>
Drupalship
</span>
<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>
</>
)
const config: DocsThemeConfig = {
logo,
project: {
link: 'https://github.com/colorfield/drupalship',
},
useNextSeoProps() {
const { asPath } = useRouter()
if (asPath === '/') {
return {
titleTemplate: "Drupalship | The Hitchhiker’s Guide to the Planet Drupal",
}
}
return {
titleTemplate: '%s | Drupalship',
}
},
//chat: {
// link: 'https://discord.com',
//},
docsRepositoryBase: 'https://github.com/colorfield/drupalship/tree/main',
footer: {
text: (
<>
<a href="/about" className='mb-6'>About</a> |
<a href="/roadmap">Roadmap</a> |
<a href="/credits">Credits</a> |
<a href="https://drupal.slack.com/archives/C05K39E58JU" target="_blank" rel="me">Slack ↗</a> |
<a href="https://drupal.community/@drupalship" target="_blank" rel="me">Mastodon ↗</a> |
<a href="https://twitter.com/drupalship" target="_blank" rel="noreferrer">Twitter ↗</a>
</>
),
},
search: {
// todo localize
placeholder: 'Search',
},
i18n: [
{ locale: 'en', text: 'English' },
{ locale: 'fr', text: 'Français' },
],
}
export default config