This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
/
docusaurus.config.js
167 lines (166 loc) · 4.23 KB
/
docusaurus.config.js
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
const path = require('path');
module.exports = {
title: 'Tezos',
tagline: 'The tagline of my site',
url: 'https://tezos.com',
baseUrl: '/',
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr'],
localeConfigs: {
en: {
label: 'English',
},
fr : {
label: 'Français'
}
},
},
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/tez.svg',
organizationName: 'tqtezos', // Usually your GitHub org/user name.
projectName: 'tezos.com', // Usually your repo name.
themeConfig: {
image: 'img/Tezos_MetaImage.jpg',
colorMode: {
switchConfig: {
lightIcon: ' ',
darkIcon: ' ',
}
},
gtag: {
trackingID: 'GTM-5FGG778',
anonymizeIP: true,
},
announcementBar: {
id: 'supportus',
isCloseable: true,
content:
'💡 We\'re in the process of a site redesign. Give us your input on <a target="_blank" rel="noopener noreferrer" href="https://github.com/tqtezos/tezos.com">GitHub</a>! 💡',
},
navbar: {
title: 'Tezos',
logo: {
src: 'img/tezos-logo.svg',
srcDark: 'img/tezos-logo-white.svg'
},
items: [
{
to: 'docs/learn/get-started',
label: 'Get Started',
activeBasePath: 'docs/learn',
position: 'left',
},
{
to: 'developer-portal',
label: 'Developer Portal',
position: 'left'
},
{
type: 'localeDropdown',
position: 'right'
},
{
href: 'https://github.com/tqtezos/tezos.com',
label: 'Upgrade Me On GitHub!',
className: 'fork-on-github',
position: 'right',
},
{
href: 'email',
label: 'Sign Up For Updates',
position: 'right'
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Follow Tezos:',
items: [
{
label: 'Twitter',
to: 'https://twitter.com/tezos',
},
{
label: 'Telegram',
to: 'https://t.me/tezosplatform',
},
{
label: 'Reddit',
to: 'https://www.reddit.com/r/tezos',
},
{
label: 'Tezos Agora',
to: 'https://forum.tezosagora.org/',
},
{
label: 'Stack Exchange',
to: 'https://tezos.stackexchange.com/',
},
{
label: 'Riot',
to: 'https://riot.tzchat.org/',
},
{
label: 'GitLab',
to: 'https://gitlab.com/tezos/tezos',
},
{
label: 'Discord',
to: 'https://discord.com/invite/udZwhQn',
}
],
},
{
title: 'Sign Up For The Tezos Newsletter:',
items: [
{
label: 'Email',
href: 'placeholder'
},
{
label: 'Submit',
href: 'submit'
},
{
label: 'Thank you for subscribing!',
href: 'success'
},
{
label: 'This email address is already subscribed!',
href: 'duplicate'
}
]
},
],
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: ({locale, docPath}) => {
if (locale === 'en') return `https://github.com/tqtezos/tezos.com/tree/main/docs/${docPath}`
else return `https://github.com/tqtezos/tezos.com/tree/main/i18n/${locale}/docusaurus-plugin-content-docs/current/${docPath}`
}
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/tqtezos/tezos.com/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
plugins: [path.resolve(__dirname, 'plugins/rootNavPlugin')]
};