-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
66 lines (65 loc) · 1.63 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
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import starlight from "@astrojs/starlight";
import rehypeFigure from "@microflash/rehype-figure";
import yaml from "@rollup/plugin-yaml";
import { defineConfig } from "astro/config";
import { link } from "fs";
import path, { dirname } from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// https://astro.build/config
export default defineConfig({
site: "https://teonite.com",
vite: {
plugins: [yaml()],
resolve: {
alias: {
"@/": `${path.resolve(__dirname, "src")}/`,
},
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@use "@/styles/global" as *;`,
},
},
},
},
integrations: [
sitemap(),
starlight({
title: "teonite best practices",
social: {
github:'https://github.com/teonite',
},
logo: {
src: "./src/assets/svg/tntLogo.svg",
},
disable404Route: true,
customCss: ["./src/styles/docs/variables.scss", "./src/styles/docs/index.scss"],
components: {
ThemeProvider: "./src/components/starlight/ThemeProvider.astro",
},
sidebar: [
{
label : 'Development Process',
autogenerate: {directory: 'Development Process'}
},
{
label: 'Open Source',
autogenerate: {directory: 'Open Source'}
}
]
}),
mdx(),
],
markdown: {
rehypePlugins: [rehypeFigure],
shikiConfig: {
theme: "github-light",
wrap: true,
},
},
});