-
Notifications
You must be signed in to change notification settings - Fork 11
/
astro.config.ts
59 lines (58 loc) · 2.04 KB
/
astro.config.ts
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
import starlight from "@astrojs/starlight";
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
import { defineConfig } from "astro/config";
// https://astro.build/config
export default defineConfig({
site: "https://volarjs.dev/",
integrations: [
starlight({
logo: {
src: "./src/assets/logo.svg",
alt: "Volar's logo, a light-blue prism with a very subtle tint of red in the top right and a wave going through the prism.",
},
expressiveCode: {
plugins: [pluginCollapsibleSections()],
},
title: "Volar.js",
description: "The Embedded Language Tooling Framework",
social: {
github: "https://github.com/volarjs/",
twitter: "https://twitter.com/johnsoncodehk",
discord: "https://discord.gg/N94ECvy2uW",
},
customCss: ["./src/styles/custom.css"],
editLink: {
baseUrl: "https://github.com/volarjs/docs/edit/main/",
},
lastUpdated: true,
components: {
SiteTitle: "./src/components/starlight/SiteTitle.astro",
TableOfContents: "./src/components/starlight/TableOfContents.astro",
PageTitle: "./src/components/starlight/PageTitle.astro",
},
sidebar: [
{
label: "Core Concepts",
items: [
// Each item here is one entry in the navigation menu.
{ label: "Why Volar?", link: "/core-concepts/why-volar" },
{ label: "Embedded Languages", link: "/core-concepts/embedded-languages" },
{ label: "Volar Labs", link: "/core-concepts/volar-labs" },
],
// TODO: Use `autogenerate` once it allows you to order the sidebar
},
{
label: "Guides",
items: [
{ label: "Your First Volar Language Server", link: "/guides/first-server" },
{ label: "File Structure", link: "/guides/file-structure" },
],
},
{
label: "Reference",
autogenerate: { directory: "reference" },
},
],
}),
],
});