-
Notifications
You must be signed in to change notification settings - Fork 23
/
astro.config.mjs
57 lines (47 loc) · 1.73 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
import { defineConfig } from "astro/config"
import tailwind from "@astrojs/tailwind"
import starlight from "@astrojs/starlight"
import fs from "node:fs"
// https://astro.build/config
export default defineConfig({
i18n: {
defaultLocale: "en",
locales: ["en"],
},
site: "https://c3-lang.org",
redirects: {
'/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: [
tailwind({
applyBaseStyles: false,
}),
starlight({
favicon: "ico.svg",
title: "C3",
customCss: ["./src/content/docs.css"],
expressiveCode: {
shiki: {
langs: [JSON.parse(fs.readFileSync("./c3-grammar.json", "utf-8"))],
},
},
}),
],
})