-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
117 lines (113 loc) · 3.34 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
110
111
112
113
114
115
116
117
import { defineConfig } from "astro/config"
// import tailwind from "@astrojs/tailwind"
// import sitemap from "@astrojs/sitemap"
// import compressor from "astro-compressor"
import icon from "astro-icon"
import starlight from '@astrojs/starlight'
import starlightBlog from 'starlight-blog'
import markdownIntegration from '@astropub/md'
import astroBrokenLinksChecker from 'astro-broken-link-checker';
import mdx from "@astrojs/mdx"
// https://astro.build/config
export default defineConfig({
// https://docs.astro.build/en/guides/images/#authorizing-remote-images
site: "https://aerynos.com",
// image: {
// domains: ["images.unsplash.com"],
// },
// i18n: {
// defaultLocale: "en",
// locales: ["en"],
// fallback: {},
// routing: {
// prefixDefaultLocale: false,
// },
// },
prefetch: true,
integrations: [
astroBrokenLinksChecker({
logFilePath: 'dist/broken-links.log', // Optional: specify the log file path
checkExternalLinks: false // Optional: check external links (currently, caching to disk is not supported, and it is slow )
}),
markdownIntegration(),
icon(),
// tailwind(),
starlight({
title: "AerynOS",
logo: {
dark: '@/images/logo.svg',
light: '@/images/logo-light-mode.svg',
replacesTitle: true,
},
sidebar: [
{ slug: '' },
{ slug: 'about' },
{ slug: 'download' },
{ slug: 'community' },
{ slug: 'privacy' },
{ slug: 'sponsor' },
{
label: 'Tooling',
collapsed: true,
items: [
{ slug: 'tooling' },
{ slug: 'tooling/moss' },
{ slug: 'tooling/boulder' },
]
},
{ label: 'Blog', link: '/blog' },
],
plugins: [
starlightBlog({
title: "Blog",
recentPostCount: 100,
authors: {
ikey: {
name: 'Ikey',
title: 'Ikey',
},
sunnyflunk: {
name: 'SunnyFlunk',
title: 'SunnyFlunk',
},
ermo: {
name: 'Ermo',
title: 'Ermo',
},
},
}),
],
customCss: [
"@/styles/global.css",
],
components: {
Sidebar: "@/components/starlight-overrides/Sidebar.astro",
Pagination: "@/components/starlight-overrides/Pagination.astro",
SocialIcons: '@/components/starlight-overrides/SocialIcons.astro',
PageTitle: '@/components/starlight-overrides/PageTitle.astro',
ContentPanel: '@/components/starlight-overrides/ContentPanel.astro',
MarkdownContent: '@/components/starlight-overrides/MarkdownContent.astro',
},
credits: false,
}),
// sitemap({
// i18n: {
// defaultLocale: "en", // All urls that don't contain `fr` after `https://aerynos.com/` will be treated as default locale, i.e. `en`
// locales: {
// en: "en", // The `defaultLocale` value must present in `locales` keys
// // fr: "fr",
// },
// },
// }),
// pre-compress them generated files - requires web server to be configured to look for these first
// compressor({
// gzip: false,
// brotli: true,
// }),
mdx()
],
experimental: {
clientPrerender: true,
svg: true,
},
})