forked from Dario-DC/contribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
86 lines (83 loc) · 2.09 KB
/
astro.config.mjs
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
import { defineConfig } from 'astro/config';
import cloudflare from '@astrojs/cloudflare';
import starlight from '@astrojs/starlight';
import { sidebar } from './src/sidebar';
// https://astro.build/config
export default defineConfig({
redirects: {
'/index': '/intro',
'/FAQ': '/faq'
},
integrations: [
starlight({
title: 'Contribute | freeCodeCamp.org',
description: 'Contribute to freeCodeCamp.org',
locales: {
root: {
label: 'English',
lang: 'en'
}
// es: {
// label: 'Español',
// lang: 'es'
// }
// de: {
// label: 'German',
// lang: 'de'
// },
// it: {
// label: 'Italian',
// lang: 'it'
// },
// jp: {
// label: 'Japanese',
// lang: 'jp'
// },
// pt: {
// label: 'Portuguese',
// lang: 'pt'
// },
// uk: {
// label: 'Ukrainian',
// lang: 'uk'
// },
// zh: {
// label: 'Chinese',
// lang: 'zh'
// },
// 'zh-Tw': {
// label: 'Chinese Traditional',
// lang: 'zh-TW'
// }
},
logo: {
src: './public/icons/icon-96x96.png',
replacesTitle: true
},
tableOfContents: true,
editLink: {
baseUrl: 'https://github.com/freeCodeCamp/contribute/edit/main/'
},
social: {
github: 'https://github.com/freeCodeCamp',
twitter: 'https://twitter.com/freeCodeCamp',
discord:
'https://discord.com/invite/freecodecamp-org-official-fi-fo-692816967895220344'
},
sidebar: sidebar,
components: {
// Override the default `SocialIcons` component.
Header: './src/components/FCCHeader.astro',
ThemeProvider: './src/components/FCCThemeProvider.astro'
},
customCss: [
// Relative path to your custom CSS file
'./src/styles/theme.css'
]
})
],
output: 'hybrid',
adapter: cloudflare({
imageService: 'passthrough'
})
});