-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
40 lines (37 loc) · 1.16 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import * as fs from 'fs';
import tailwind from "@astrojs/tailwind";
import { Graphviz } from "@hpcc-js/wasm";
import rehypeGraphviz from "rehype-graphviz";
import starlightBlog from 'starlight-blog';
let sidebar = JSON.parse(fs.readFileSync("generated/sidebar.json"));
let redirects = JSON.parse(fs.readFileSync("generated/redirects.json"));
let config = JSON.parse(fs.readFileSync("generated/config.json"));
// https://astro.build/config
export default defineConfig({
site: 'https://aep.dev',
redirects: redirects,
markdown: {
rehypePlugins: [[rehypeGraphviz, { graphviz: await Graphviz.load() }]],
},
integrations: [starlight({
title: 'AEP',
customCss: [
'./src/tailwind.css',
],
plugins: [starlightBlog()],
social: {
github: config.urls.repo,
},
sidebar: sidebar,
components: {
'Head': './src/components/overrides/Head.astro',
'SkipLink': './src/components/overrides/SkipLink.astro',
'TableOfContents': './src/components/overrides/TableOfContents.astro'
}
}),
tailwind({
applyBaseStyles: false,
})],
});