-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
65 lines (64 loc) · 1.68 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
import starlight from "@astrojs/starlight";
// @ts-check
import { defineConfig } from "astro/config";
import rlc from "remark-link-card";
import remarkBreaks from "remark-breaks";
import { rehypeHeadingIds } from '@astrojs/markdown-remark'
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
// https://astro.build/config
export default defineConfig({
site: "https://nitkc-proken.github.io",
trailingSlash: "always",
base: "/web-dev-intro",
markdown: {
remarkPlugins: [
[
rlc,
{
shortenUrl: true,
},
],
remarkBreaks,
],
rehypePlugins: [
rehypeHeadingIds,
[rehypeAutolinkHeadings, { behavior: 'wrap' }],
],
},
integrations: [
starlight({
title: "Web開発入門",
lastUpdated:true,
editLink: {
baseUrl: "https://github.com/nitkc-proken/web-dev-intro/edit/main/",
},
tableOfContents: {
minHeadingLevel: 1,
maxHeadingLevel: 3,
},
social: {
github: "https://github.com/nitkc-proken/web-dev-intro",
"x.com": "https://x.com/NITKiC_pro",
},
sidebar: [
{
label: "Webの基礎",
autogenerate: { directory: "basics" },
},
{
label: "ツール・環境構築",
autogenerate: { directory: "tools" },
},
{
label: "ガイド",
autogenerate: { directory: "guides" },
},
{
label: "このサイトについて",
autogenerate: { directory: "about" },
},
],
customCss: ["./src/styles/linkcard.css","./src/styles/headings.css","./src/styles/custom.css"],
}),
],
});