-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathastro.config.mjs
More file actions
68 lines (54 loc) · 2.14 KB
/
astro.config.mjs
File metadata and controls
68 lines (54 loc) · 2.14 KB
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
import {defineConfig} from "astro/config";
import starlight from "@astrojs/starlight";
import fs from "node:fs";
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig(
{
i18n: {
defaultLocale: "en",
locales: ["en"],
},
site: "https://c3-lang.org",
redirects: {
'/docs': '/getting-started',
'/guide': '/getting-started',
'/introduction': '/getting-started',
'/guide/basic-types-and-values': '/language-fundamentals/basic-types-and-values',
'/guide/my-first-hello-world': '/getting-started/hello-world',
'/guide/my-first-project': '/getting-started/projects',
'/references/development': '/get-involved',
'/references': '/getting-started/design-goals',
'/introduction/design-goals': '/getting-started/design-goals',
'/references/getting-started/prebuilt-binaries': '/getting-started/prebuilt-binaries',
'/install-c3/prebuilt-binaries': '/getting-started/prebuilt-binaries',
'/references/getting-started/setup': '/getting-started/compile',
'/install-c3/compile': '/getting-started/compile',
'/references/docs/examples': '/language-overview/examples',
'/references/getting-started/primer': '/language-overview/primer',
'/references/getting-started/allfeatures': '/faq/allfeatures',
'/introduction/roadmap': '/getting-started/roadmap',
'/compare': '/faq/compare-languages',
'/references/docs/compare': '/faq/compare-languages'
},
integrations: [
starlight(
{
favicon: "/ico.svg",
title: "C3",
customCss: ["./src/content/docs.css"],
expressiveCode: {
shiki: {
langs: [JSON.parse(fs.readFileSync("./c3-grammar.json", "utf-8"))],
themes: {
light: 'github-light',
dark: 'github-dark',
},
},
},
}),
],
vite: {
plugins: [tailwindcss()]
}
})