-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
85 lines (83 loc) · 2.44 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
import { defineConfig } from 'astro/config';
import starlight from "@astrojs/starlight";
import starlightBlog from 'starlight-blog';
import tailwind from '@astrojs/tailwind';
import markdoc from '@astrojs/markdoc';
import { loadEnv } from "vite";
const env = loadEnv(process.env.NODE_ENV, process.cwd(), '');
export default defineConfig({
site: 'https://legwiki.lkj.io',
integrations: [
markdoc(),
starlight({
title: "legwiki",
description: "compass for myself.",
logo: {
light: "./src/assets/legwiki-logo-light-side.svg",
dark: "./src/assets/legwiki-logo-dark-side.svg",
replacesTitle: true,
},
head: [
{
tag: 'meta',
attrs: { property: 'og:image', content: env.ROOT_URL + '/legwiki-og-image.png' },
},
{
tag: 'meta',
attrs: { property: 'twitter:image', content: env.ROOT_URL + '/legwiki-og-image.png' },
},
],
components: {
MarkdownContent: './src/components/MarkdownTemplate.astro',
},
customCss: [
'./src/styles/tailwind.css',
'./src/styles/custom.css',
],
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 6
},
editLink: {
baseUrl: 'https://github.com/legnoh/legwiki/tree/main/',
},
defaultLocale: 'ja',
plugins: [
starlightBlog({
title: "leglog",
authors: {
legnoh: {
name: 'legnoh',
title: 'Internet seniors\' association',
picture: '/img/avatar/legnoh.jpeg', // Images in the `public` directory are supported.
url: 'https://twitter.com/legnoh',
},
},
postCount: 1,
recentPostCount: 1000,
}),
],
sidebar: [
{ label: 'About', link: '/about' },
{ label: 'Whoami', link: '/whoami' },
{ label: '環境', link: '/environments' },
{
label: 'リスク対応',
items: [
{label: 'リスク評価', link: '/risk/assessment' },
{label: '防災対策', link: '/risk/disaster-prevention' }
]
},
],
social: {
'x.com': 'https://x.com/legnoh',
instagram: 'https://www.instagram.com/legnoh/',
youtube: 'https://www.youtube.com/@legnoh',
github: 'https://github.com/legnoh',
},
}),
tailwind({
applyBaseStyles: false,
}),
],
});