-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathastro.config.mjs
109 lines (108 loc) · 2.83 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import remarkMermaid from "@southball/remark-mermaid";
import partytown from "@astrojs/partytown";
import { defineConfig } from "astro/config";
import wikiLinkPlugin from "remark-wiki-link-plus";
import compress from "astro-compress";
import icon from "astro-icon";
import metaTags from "astro-meta-tags";
// https://astro.build/config
export default defineConfig({
integrations: [
metaTags(),
icon({
include: { "mdi": ["launch"], "material-symbols": ["*"] },
iconDir: "src/assets/icons",
}),
compress({
HTML: {
"html-minifier-terser": {
removeAttributeQuotes: false,
},
},
CSS: false,
}),
partytown({
config: {
forward: ["dataLayer.push"],
},
}),
starlight({
title: "SysLearn",
description: "シス研として習得してほしいスキルを学ぶ蔵",
defaultLocale: "ja",
locales: {
root: {
label: '日本語',
lang: 'ja',
},
},
logo: {
src: "./src/assets/icons/logo/sym.svg",
},
social: {
"github": "https://github.com/SystemEngineeringTeam/SysLearn",
"x.com": "https://x.com/set_official",
"instagram": "https://www.instagram.com/ait.sysken",
},
components: {
Sidebar: "src/components/starlight/Sidebar.astro",
},
customCss: [
"@fontsource-variable/inter",
"@fontsource-variable/noto-sans-jp",
"src/styles/global.css",
"src/styles/fonts.css",
],
sidebar: [
{
label: "ホーム",
items: [
{
label: "はじめに",
link: "/",
},
{
label: "困ったときは",
autogenerate: { directory: "help/" },
}
],
},
{
label: "C言語",
items: [
{
label: "基礎コース",
autogenerate: { directory: "textbook/c-lang/beginner" },
},
],
},
{
label: "Web",
items: [
{
label: "授業ついていくもんコース",
autogenerate: { directory: "textbook/web/for-classes" },
},
{
label: "ハッカソン出れるもんコース",
autogenerate: { directory: "textbook/web/web/for-hackathons" },
},
],
},
],
}),
react(),
],
site: "https://learn.sysken.net",
image: {
remotePatterns: [{ protocol: "https" }, { protocol: "http" }],
},
markdown: {
remarkPlugins: [
[remarkMermaid, { themes: ["dark", "neutral"] }],
[wikiLinkPlugin, { markdownFolder: "src/content/docs" }],
],
},
});