-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
60 lines (57 loc) · 1.85 KB
/
astro.config.mjs
File metadata and controls
60 lines (57 loc) · 1.85 KB
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
// @ts-check
import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import starlightBlog from "starlight-blog";
// https://astro.build/config
export default defineConfig({
site: "https://learnercraft.github.io",
integrations: [
starlight({
title: "LearnerCraft Labs",
favicon: "/images/favicon.png",
social: [{ icon: "github", label: "GitHub", href: "https://github.com/learnercraft" }],
defaultLocale: "root",
locales: {
// English docs in `src/content/docs/en/`
root: {
label: "English",
lang: "en",
},
// Vietnamese docs in `src/content/docs/vi/`
vi: {
label: "Tiếng Việt",
lang: "vi",
},
},
sidebar: [
{ slug: "about" },
{
label: "Projects",
autogenerate: { directory: "projects" },
translations: {
"vi": "Các dự án",
},
},
],
customCss: ["./src/styles/global.css", "./src/styles/fonts.css"],
plugins: [
starlightBlog({
authors: {
yell0wsuit: {
name: "yell0wsuit",
title: "Admin",
picture: "/images/avatar/yell0wsuit.png",
url: "https://yell0wsuit.page",
},
},
}),
],
}),
react(),
],
vite: {
plugins: [tailwindcss()],
},
});