-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.mjs
34 lines (33 loc) · 1.17 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
import { defineConfig } from 'astro/config';
import sitemap from "@astrojs/sitemap";
import mdx from "@astrojs/mdx";
import rehypeMermaid from 'rehype-mermaid';
import remarkCustomHeaderId from 'remark-custom-header-id';
import { mermaidConfig } from 'src/util/mermaid-config'; // change to 'choco-astro/src/util/mermaid-config' if using choco-astro on a repository
export default defineConfig({
// site: 'https://docs.chocolatey.org', // Uncomment this with the domain you want to deploy to
vite: {
optimizeDeps: {
exclude: ['fsevents']
}
},
server: {
port: 4321, // Update this port to what is assigned by choco-theme - https://github.com/chocolatey/choco-theme/blob/main/build/data/preview-config.ts
host: true
},
markdown: {
syntaxHighlight: false, // Temporarily disable syntax highlighting and rely on Prism.js via choco-theme
remarkPlugins: [
remarkCustomHeaderId,
],
rehypePlugins: [
[rehypeMermaid, {
mermaidConfig: mermaidConfig
}]
]
},
prefetch: {
prefetchAll: true
},
integrations: [sitemap(), mdx()]
});