-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathastro.config.mjs
57 lines (56 loc) · 1.42 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
// @ts-check
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import tailwind from '@astrojs/tailwind';
import starlight from '@astrojs/starlight';
export default defineConfig({
...(process.env.NODE_ENV === 'production' ? {
site: 'https://openbuildxyz.github.io',
base: 'eco',
trailingSlash: 'never',
} : {
site: 'https://example.com',
}),
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh'],
},
integrations: [
react({ experimentalReactChildren: true }),
tailwind(),
starlight({
title: 'OpenBuild Ecosystem',
favicon: '/favicon.png',
customCss: [
'./src/shared/styles/guide.css',
],
components: {
SiteTitle: './src/entry/layouts/default/BrandLogo.astro',
SocialIcons: './src/entry/layouts/default/NavMenu.astro',
},
sidebar: [
{
label: 'Getting Started',
translations: { zh: '开始' },
items: [
'guides',
// 'guides/team',
'guides/code-of-conduct',
],
},
{
label: 'Building Ecosystem',
translations: { zh: '构建生态' },
items: [
'guides/how-to-contribute',
// 'guides/how-to-join',
],
},
],
editLink: {
baseUrl: 'https://github.com/openbuildxyz/eco/edit/main',
},
lastUpdated: true,
}),
],
});