-
Notifications
You must be signed in to change notification settings - Fork 5
/
astro.config.mjs
60 lines (59 loc) · 2.07 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
import { defineConfig } from 'astro/config';
import starlight from "@astrojs/starlight";
import rehypeMermaid from "rehype-mermaid";
// https://astro.build/config
export default defineConfig({
site: 'https://gren-lang.org',
base: '/book',
outDir: './docs',
integrations: [
starlight({
title: 'The Gren Programming Language',
favicon: '/favicon.png',
social: {
github: 'https://github.com/gren-lang/book',
mastodon: 'https://fosstodon.org/@gren_lang',
discord: 'https://discord.gg/Chb9YB9Vmh',
},
sidebar: [
{
label: 'Introduction',
items: [
{ label: 'Why Gren', link: '/' },
{ label: 'Hello World', link: '/hello_world/' },
],
},
{
label: 'The Language',
items: [
{ label: 'Getting started', link: '/syntax/repl/' },
{ label: 'Constants', link: '/syntax/constants/' },
{ label: 'Functions', link: '/syntax/functions/' },
{ label: 'Numbers', link: '/syntax/numbers/' },
{ label: 'Arrays', link: '/syntax/arrays/' },
{ label: 'Strings', link: '/syntax/strings/' },
{ label: 'Records', link: '/syntax/records/' },
{ label: 'Types', link: '/syntax/types/' },
{ label: 'If expressions', link: '/syntax/ifs/' },
{ label: 'Let expressions', link: '/syntax/lets/' },
{ label: 'Custom types', link: '/syntax/custom_types/' },
{ label: 'Pattern matching', link: '/syntax/pattern_matching/' },
{ label: 'Destructuring', link: '/syntax/destructuring/' },
{ label: 'Modules', link: '/syntax/modules/' },
{ label: 'Comments', link: '/syntax/comments/' },
],
},
{
label: 'Appendix',
items: [
{ label: 'gren.json', link: '/appendix/gren_json/' },
{ label: 'FAQ', link: '/appendix/faq/' },
],
},
],
}),
],
markdown: {
rehypePlugins: [[rehypeMermaid, { strategy: "img-svg" }]],
},
});