-
Notifications
You must be signed in to change notification settings - Fork 26
/
docusaurus.config.js
243 lines (239 loc) · 7.56 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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Data For Good",
tagline: "Accélérateur citoyen d'intérêt général",
url: "https://dataforgood.fr",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
deploymentBranch: "main",
favicon: "img/logo-dfg-new.png",
organizationName: "dataforgoodfr", // Usually your GitHub org/user name.
projectName: "dataforgoodfr.github.io", // Usually your repo name.
plugins: [
// require.resolve('docusaurus-lunr-search'),
[
"@docusaurus/plugin-content-blog",
{
/**
* Required for any multi-instance plugin
*/
id: "projects",
/**
* URL route for the blog section of your site.
* *DO NOT* include a trailing slash.
*/
routeBasePath: "projects",
/**
* Path to data on filesystem relative to site dir.
*/
path: "./projects",
postsPerPage: "ALL",
},
],
],
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl:
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: "Data For Good",
logo: {
alt: "Data For Good Logo",
src: "img/logo-dfg-new2.png",
},
items: [
// {
// type: 'doc',
// docId: 'dataforgood',
// position: 'left',
// label: "🌎 Qui sommes-nous ?",
// },
{
to: "https://dataforgood.notion.site/",
label: "🌎 Qui sommes-nous ?",
position: "left",
},
{
label: "⭐ Projets",
position: "left",
dropdownActiveClassDisabled: true,
items: [
{
label: "Tous les projets",
to: "/projects",
},
{
label: "Saison 12",
to: "/projects/tags/saison-12",
},
{
label: "Saison 11",
to: "/projects/tags/saison-11",
},
{
label: "Saison 10",
to: "/projects/tags/saison-10",
},
{
label: "Le serment d'Hippocrate du Data Scientist",
to: "/hippocrate",
},
{
label: "Les projets qui ont besoin d'aide",
to: "https://dataforgood.notion.site/Trouver-un-projet-6244df9394d048fca5e7350260919c8c",
},
],
},
{ to: "/blog", label: "📚 Blog", position: "left" },
// {
// to: "/saison12",
// label: "🤿 Saison 12",
// position: "left",
// },
{ to: "/iagenerative", label: "🤖 IA Générative", position: "left" },
{
to: "/join",
label: "💪 Rejoindre la communauté",
className: "button button--secondary button--lg button-navbar",
position: "right",
},
{
to: "/propose",
label: "💡 Proposer un projet",
className: "button button--secondary button--lg button-navbar",
position: "right",
},
{
to: "https://www.helloasso.com/associations/data-for-good/formulaires/1",
label: "👏 Faire un don",
className: "button button--secondary button--lg button-navbar",
position: "right",
},
// {
// href: 'https://dataforgood.slite.com/p/channel/F9UR6bhuYCPAtvfLDje8Zc/notes/p8MSVDq6k',
// label: 'FAQ',
// position: 'right',
// },
{
href: "https://github.com/dataforgoodfr",
className: "header-github-link",
position: "right",
"aria-label": "GitHub repository",
},
],
},
footer: {
style: "light",
links: [
{
title: "Pages",
items: [
{
label: "L'association Data For Good",
to: "https://dataforgood.notion.site",
},
{
label: "Serment d'Hippocrate",
to: "/hippocrate",
},
{
label: "FAQ",
to: "https://dataforgood.notion.site/f58df2b6f02849a4ae94d8cb9ce49e5f?v=c165effdeeb140ea9fe964ca966485a6",
},
{
label: "Politique de confidentialité",
to: "/confidentialite",
},
],
},
{
title: "Liens externes",
items: [
{
label: "GitHub",
href: "https://github.com/dataforgoodfr",
},
{
label: "Youtube",
href: "https://www.youtube.com/channel/UCA_utdbmVhAOFujulWlaaCQ",
},
{
label: "Meetup",
href: "https://www.meetup.com/Data-for-Good-FR",
},
{
label: "Hugging Face",
href: "https://huggingface.co/DataForGood",
},
{
label: "Twitch",
href: "https://twitch.tv/dataforgood",
},
],
},
{
title: "Mais aussi",
items: [
{
label: "Blog",
to: "/blog",
},
{
label: "Notion",
href: "https://dataforgood.notion.site",
},
{
label: "Linkedin",
href: "https://www.linkedin.com/company/dataforgood",
},
{
label: "Instagram",
href: "https://www.instagram.com/dataforgoodfr/",
},
{
label: "Twitter",
href: "https://twitter.com/dataforgood_fr",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Data For Good - Avec amour depuis 2014 ❤ - contact à hellodataforgood@gmail.com`,
},
// announcementBar: {
// id: 'announcementBar-2', // Increment on change
// content: `⭐️ If you like Docusaurus, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/facebook/docusaurus">GitHub</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/docusaurus" >Twitter</a>`,
// },
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;