-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
88 lines (87 loc) · 1.98 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import Icons from 'unplugin-icons/vite';
import rpgleLang from './src/syntaxes/rpgle.tmLanguage.json';
import clLang from './src/syntaxes/cl.tmLanguage.json';
// https://astro.build/config
export default defineConfig({
site: 'https://wright4i.github.io',
trailingSlash: 'always',
integrations: [
starlight({
title: 'Wright4i',
logo: {
src: './public/logo.png',
replacesTitle: true,
},
favicon: './logo.png',
social: {
github: 'https://github.com/Wright4i',
linkedin: 'https://linkedin.com/in/Wright4i',
youtube: 'https://youtube.com/@Wright4i',
'x.com': 'https://x.com/Wright4i',
},
editLink: {
baseUrl: 'https://github.com/wright4i/wright4i.github.io/edit/main/',
},
customCss: [
'./src/styles/custom.css',
],
sidebar: [
{
label: 'Guides',
badge: {
text: 'New',
variant: 'success'
},
items: [
// { label: 'RPG', autogenerate: { directory: '/guides/rpg/' } },
{ label: 'Python', autogenerate: { directory: '/guides/py/' } },
// { label: 'Node', autogenerate: { directory: '/guides/node/' } },
// { label: 'Web Frontend', autogenerate: { directory: '/guides/web/' } },
// { label: 'More', autogenerate: { directory: '/guides/more/' } },
],
collapsed: false,
},
{
label: 'Presentations',
link: '/presentations/',
},
// {
// label: 'Blog',
// autogenerate: { directory: '/blog/' },
// collapsed: true,
// },
// {
// label: 'Resources',
// autogenerate: { directory: '/resources/'},
// collapsed: true,
// },
{
label: 'About me',
link: '/about/',
badge: {
text: 'Contact me!',
variant: 'tip'
},
},
],
}),
],
markdown: {
shikiConfig: {
langs: [
rpgleLang,
clLang,
'sql',
]
}
},
vite: {
plugins: [
Icons({
compiler: 'astro',
}),
],
}
});