-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathastro.config.mjs
More file actions
98 lines (96 loc) · 2.4 KB
/
astro.config.mjs
File metadata and controls
98 lines (96 loc) · 2.4 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
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
96
97
98
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
const githubUrl = "https://github.com/flemay/3musketeers";
// https://astro.build/config
// https://starlight.astro.build/reference/configuration/
export default defineConfig({
site: "https://3musketeers.pages.dev",
integrations: [
starlight({
title: "3 Musketeers",
description:
"Test, build, and deploy your apps from anywhere, the same way!",
logo: {
src: "./src/assets/logo/hero-v2.svg",
},
customCss: [
"./src/styles/global.css",
],
components: {
Footer: "./src/components/ConditionalFooter.astro",
},
expressiveCode: {
// https://expressive-code.com/reference/configuration/#tabwidth
// There are many `make` code blocks which requires tabs. Setting `tabWidth` will preserve those tabs.
tabWidth: 0,
},
head: [
{
tag: "link",
attrs: {
rel: "apple-touch-icon",
sizes: "180x180",
href: "/apple-touch-icon.png",
},
},
{
tag: "link",
attrs: {
rel: "icon",
type: "image/png",
sizes: "32x32",
href: "/favicon_io/favicon-32x32.png",
},
},
{
tag: "link",
attrs: {
rel: "icon",
type: "image/png",
sizes: "16x16",
href: "/favicon_io/favicon-16x6.png",
},
},
{
tag: "link",
attrs: {
rel: "manifest",
href: "/favicon_io/site.webmanifest",
},
},
],
favicon: "favicon_io/favicon.ico",
social: [{
icon: "github",
label: "GitHub",
href: githubUrl,
}],
editLink: {
baseUrl: `${githubUrl}/blob/main`,
},
lastUpdated: true,
tableOfContents: {
maxHeadingLevel: 5,
},
sidebar: [
{
label: "About",
autogenerate: { directory: "about" },
},
{
label: "Guides",
autogenerate: { directory: "guides" },
},
{
label: "Tools",
autogenerate: { directory: "tools" },
},
{
label: "Resources",
autogenerate: { directory: "resources" },
},
],
}),
],
});