-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.mjs
95 lines (93 loc) · 2.34 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
87
88
89
90
91
92
93
94
95
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import * as fs from "fs";
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
site: "https://uqbar-project.github.io",
base: "/",
integrations: [starlight({
title: "Wollok",
description: "The official Wollok language website.",
expressiveCode: {
shiki: {
langs: [JSON.parse(fs.readFileSync("./src/shiki-grammars/wollok.json", "utf-8"))]
}
},
favicon: "/favicon.ico",
logo: {
light: "./src/assets/branding/imagotipo-pos.svg",
dark: "./src/assets/branding/imagotipo-neg.svg",
replacesTitle: true
},
customCss: ["./src/styles/custom-theme.css", "./src/styles/global-styles.css"],
defaultLocale: "root",
locales: {
root: {
label: "Español",
lang: "es"
},
en: {
label: "English"
}
},
social: {
github: "https://github.com/uqbar-project/wollok-language",
discord: "https://discord.gg/ZstgCPKEaa",
twitter: "https://twitter.com/wollokLang"
},
components: {
Footer: "./src/content/components/Footer.astro"
},
sidebar: [{
label: "Comenzando con Wollok",
autogenerate: {
directory: "getting_started"
}
}, {
label: "Tour",
autogenerate: {
directory: "tour"
}
}, {
label: "Documentación",
items: [{
label: "Introducción a Wollok",
link: "documentation/introduction"
}, {
label: "Objetos",
link: "documentation/objects"
}, {
label: "Tests",
link: "documentation/tests"
}, {
label: "Colecciones",
link: "documentation/collections"
}, {
label: "Clases",
link: "documentation/classes"
}, {
label: "Wollok Game",
link: "documentation/wollok_game"
}, {
label: "Avanzado",
link: "documentation/advanced"
}, {
label: "Guía del lenguaje",
link: "/documentation/language",
badge: {
text: "WollokDoc",
variant: "danger"
}
}]
}, {
label: "Material",
autogenerate: {
directory: "material"
}
}, {
label: "Quiero saber más",
link: "/more_info"
}]
}), react()]
});