-
Notifications
You must be signed in to change notification settings - Fork 6
/
docusaurus.config.js
404 lines (397 loc) · 12.5 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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
const isDev = process.env.NODE_ENV === 'development';
const isDeployPreview =
!!process.env.NETLIFY && process.env.CONTEXT === 'deploy-preview';
// Netlify branch deploy like "docusaurus-v2"
const isBranchDeploy =
!!process.env.NETLIFY && process.env.CONTEXT === 'branch-deploy';
// Used to debug production build issues faster
const isBuildFast = !!process.env.BUILD_FAST;
const baseUrl = process.env.BASE_URL ?? '/';
const versions = require("./versions.json");
function getNextVersionName() {
return 'Canary';
}
module.exports = {
title: "Bow Framework",
tagline: "Simplify Your Web Development",
url: "https://bowphp.com",
organizationName: "Capap",
baseUrl,
organizationName: "bowphp",
projectName: "bowphp.com",
i18n: {
defaultLocale: "fr",
locales: ["fr"],
},
scripts: [
"https://www.googletagmanager.com/gtag/js?id=UA-97409420-1",
"https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js",
{
src: "https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js",
async: true,
},
"static/js/script.js",
],
favicon: "img/bow.jpg",
markdown: {
mermaid: true,
},
customFields: {
startTutorial: "/blog/demarrer-bow-framework",
landingText:
"Bow Framework a été conçu dès le départ pour être facilement installé et utilisé pour rendre votre application opérationnel rapidement et est apprécié par <strong>+2500</strong> Développeur(se)s",
apiUrl: "https://bowphp.com/api/master",
users: [
{
caption: "Abou KONE",
description:
"Engineering Manager. CTO @akiltech. Magician @codedivoire.",
image: "https://avatars1.githubusercontent.com/u/582061?s=460&v=4",
infoLink: "https://github.com/devakone",
pinned: true,
},
{
caption: "Franck DAKIA",
description:
"Software engineer. Working on <a href='https://github.com/bowphp'>Bow Framework</a> and <a href='https://codelearningclub.com'>Code Learning Club</a>. Passionate about software development and DevOps lover ❤️",
image: "https://avatars1.githubusercontent.com/u/9353811?s=460&v=4",
infoLink: "https://github.com/papac",
pinned: true,
},
{
caption: "Chun-Sheng, Li",
description: "Hacker's thought. Don't know, but want to do.",
image:
"https://avatars1.githubusercontent.com/u/9021747?s=460&u=b224b484728023911b47a55d5e09612516f8e468&v=4",
infoLink: "https://github.com/peter279k",
pinned: true,
},
{
caption: "Salomon DION",
description:
"Artificial Intelligence Enthusiast; Afro Optimist; Data Junkie",
image: "https://avatars3.githubusercontent.com/u/25983025?s=460&v=4",
infoLink: "https://github.com/detygon",
pinned: true,
},
{
caption: "François KOBON",
description:
"#Coder. #Builder. #Hacker - Free & Open Source Software enthusiast (#ilovefs, #FOSS) - Innovation and Social Transformation - Ivorian - Jesus's Lovers",
image: "https://avatars1.githubusercontent.com/u/10742869?s=460&v=4",
infoLink: "https://github.com/fkobon",
pinned: true,
},
],
sponsors: [
{
caption: "Adjemin",
description:
'Adjemin est une application mobile qui vous permet de faire du e-commerce sans intermédiaire. La Startup met également à votre disposition <a href="https://smartlivraison.com">SmartLivraison</a> qui vous permet de gérer mieux votre services de livraison en temps réel.',
image: "/img/logoadjemin.png",
infoLink: "https://adjemin.com",
},
{
caption: "Akil Technologies",
description:
"En existence depuis 2015, AKIL a la base c’est la mise en avant du savoir faire technologique Africain et plus précisément ivoirien, depuis Abidjan où nous sommes basés. Nous sommes fiers de nos équipes, représentatives du talent formé localement aux normes de développement internationales.",
image:
"/img/logoakil.png",
infoLink: "https://akiltechnologies.com",
},
{
caption: "Etudesk",
description:
"Améliorer l'expérience d'apprentissage pour la nouvelle génération de professionnels.",
image: "/img/logoetudesk.png",
infoLink: "https://www.etudesk.com",
},
// {
// caption: "Gelsen Dev",
// description: "La communauté des développeurs sénégalais.",
// image: "https://www.galsen.dev/_nuxt/img/galsen-dev.11b417e.webp",
// infoLink: "https://www.galsen.dev/",
// },
],
fans: [
{
name: "Ange Bagui",
description: "Co-Founder & CEO at Adjemin but Software Developer",
github: "https://github.com/angebagui",
image:
"https://avatars3.githubusercontent.com/u/5214752?s=460&u=9d819e10cf354081517b488f9e50b0020620f1d8&v=4",
},
{
name: "Jean-Vincent kassi",
github: "https://github.com/jvkassi",
image: "https://avatars2.githubusercontent.com/u/3010867?s=460&v=4",
},
{
name: "TechNov",
github: "https://github.com/TechNov",
image: "https://avatars2.githubusercontent.com/u/7539516?s=400&v=4",
},
{
name: "Nougbele Daniel Jonatan",
github: "https://github.com/agatapouglof",
image:
"https://avatars3.githubusercontent.com/u/23237383?s=400&u=c8ee1b6c1cffeb9b41e2017a9525dba4766582e4&v=4",
},
{
name: "Ismaël Diomandé",
github: "https://github.com/Benito225",
image:
"https://avatars0.githubusercontent.com/u/23212440?s=400&u=bbec7cf3be80486fe3225e67723d83799ac4668d&v=4",
},
{
name: "Agnaramon Boris-Carnot",
github: "https://github.com/agnamc",
image:
"https://avatars3.githubusercontent.com/u/4026625?s=400&u=2e19b9857a206b8efb391081d6144250b4aae311&v=4",
},
{
name: "FEBE Dev",
github: "https://github.com/dev-febe",
image: "https://avatars2.githubusercontent.com/u/48589808?s=460&v=4",
},
],
defaultVersionShown: "4.x",
repoUrl: "https://github.com/bowphp/app",
numberOfFollowers: 3500,
},
onBrokenLinks: "log",
onBrokenMarkdownLinks: "log",
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
showLastUpdateAuthor: true,
showLastUpdateTime: true,
editUrl: "https://github.com/bowphp/docs/edit/4.0/docs/",
path: "docs",
sidebarPath: "sidebars.json",
editUrl: ({ locale, docPath }) => {
if (locale !== "en") {
return `https://crowdin.com/project/bowphp/${locale}`;
}
// We want users to submit doc updates to the upstream/next version!
// Otherwise we risk losing the update on the next release.
const nextVersionDocsDirPath = "docs";
return `https://github.com/bowphp/docs/edit/main/${nextVersionDocsDirPath}/${docPath}`;
},
showLastUpdateAuthor: true,
showLastUpdateTime: true,
rehypePlugins: [],
disableVersioning: false,
lastVersion:
isDev || isDeployPreview || isBranchDeploy ? "current" : undefined,
onlyIncludeVersions: (() => {
if (isBuildFast) {
return ["current"];
} else if (isDev || isDeployPreview || isBranchDeploy) {
return ["current", ...versions.slice(0, 2)];
}
return undefined;
})(),
versions: {
current: {
label: `${getNextVersionName()} 🚧`,
},
},
},
blog: {
blogTitle: "Bowphp blog!",
blogDescription: "Trouver les astuces et conseils sur bowphp",
postsPerPage: "ALL",
showReadingTime: true,
routeBasePath: "blog",
path: "blog",
postsPerPage: 10,
},
theme: {
customCss: ["src/css/customTheme.css", "static/css/custom.css"],
},
gtag: {
trackingID: "G-309894919",
anonymizeIP: true,
},
},
],
],
plugins: [
[
require.resolve("@cmfcmf/docusaurus-search-local"),
{
indexDocs: true,
indexDocSidebarParentCategories: 0,
indexBlog: true,
indexPages: false,
language: "fr",
maxSearchResults: 10,
},
],
],
themeConfig: {
metadata: [
{
name: "keywords",
content:
"php, bowphp, bow framework, tintin, routing, i18n, request, http",
},
],
navbar: {
hideOnScroll: true,
title: "Bow Framework",
logo: {
src: "img/bow.jpg",
},
items: [
{
to: "docs/installation",
label: "Docs",
position: "left",
},
{
to: "blog",
label: "Blog",
position: "left",
},
{
href: "https://bowphp.com/api/master",
label: "API",
position: "left",
},
{
type: "docsVersionDropdown",
position: "left",
dropdownActiveClassDisabled: true,
},
{
type: "localeDropdown",
position: "right",
},
{
href: "https://join.slack.com/t/bowphp/shared_invite/zt-9c90n2iv-Rx1zdUG0YRAnDULhgELD0g",
label: "Slack",
position: "right",
},
{
href: "https://t.me/+nDyat6uKlqI5ZjFk",
label: "Telegram",
position: "right",
},
{
href: "https://github.com/bowphp",
className: "header-github-link",
"aria-label": "GitHub repository",
position: "right",
},
],
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
},
colorMode: {
defaultMode: "light",
disableSwitch: false,
respectPrefersColorScheme: true,
},
footer: {
style: "dark",
links: [
{
title: " ",
items: [
{
label:
"Bowphp a été conçu dès le départ pour être facilement installé et utilisé pour rendre votre application opérationnel rapidement.",
to: "#",
},
],
},
{
title: "Documentation",
items: [
{
label: "Commencer Bow Framework",
to: "https://bowphp.com/docs/installation",
},
{
label: "Voulez-vous contribuer ?",
to: "https://bowphp.com/docs/contribution.html",
},
{
label: "API Reference",
to: "https://bowphp.com/api/master",
},
],
},
{
title: "Communautés",
items: [
{
label: "Code D'ivoire",
to: "https://codedivoire.slack.com/",
},
{
label: "Galsen Dev",
to: "https://discord.gg/u8aAaCnyGn",
},
{
label: "Code Learning Club",
to: "https://codelearningclub.com",
},
],
},
{
title: "En plus",
items: [
{
label: "Twitter",
to: "https://twitter.com/papacdev",
},
{
label: "Slack",
to: "https://join.slack.com/t/bowphp/shared_invite/zt-9c90n2iv-Rx1zdUG0YRAnDULhgELD0g",
},
{
label: "Github",
to: "https://github.com/bowphp",
},
],
},
// {
// title: "Légal",
// items: [
// {
// label: "Terms",
// to: "https://twitter.com/papacdev"
// },
// {
// label: "Licence",
// to: "https://join.slack.com/t/bowphp/shared_invite/zt-9c90n2iv-Rx1zdUG0YRAnDULhgELD0g"
// }
// ]
// }
],
copyright:
"Copyright © " +
new Date().getFullYear() +
' développé avec 💚 par <a href="https://github.com/papac">Franck DAKIA</a>',
},
mermaid: {
theme: {
light: "neutral",
dark: "forest",
},
},
prism: {
additionalLanguages: ["php"],
},
},
themes: ["@docusaurus/theme-mermaid"],
};