-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathastro.config.mjs
39 lines (36 loc) · 1.32 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
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
import mdx from '@astrojs/mdx';
import tailwindcss from '@tailwindcss/vite'
import alpinejs from '@astrojs/alpinejs';
import robotsTxt from 'astro-robots-txt';
import remarkMath from 'remark-math';
import remarkEmoji from 'remark-emoji';
import rehypeKatex from 'rehype-katex';
import rehypeMermaid from 'rehype-mermaid';
import remarkPlantUML from '@akebifiky/remark-simple-plantuml';
import { remarkReadingTime } from './remark-plugins/remark-reading-time.mjs';
import { remarkDiagram } from './remark-plugins/remark-diagram.mjs';
import icon from "astro-icon";
import markdoc from "@astrojs/markdoc";
import expressiveCode from 'astro-expressive-code';
// https://astro.build/config
export default defineConfig({
vite: {
plugins: [tailwindcss()],
ssr: {
external: ['svgo'],
noExternal: ['swiper']
},
optimizeDeps: { include: ['leaflet'] }
},
site: 'https://hellotham.github.io',
base: '/hello-astro/',
integrations: [icon(), sitemap(), alpinejs(), robotsTxt(), markdoc(), expressiveCode(), mdx()],
markdown: {
extendDefaultPlugins: true,
remarkPlugins: [remarkReadingTime, remarkMath, remarkPlantUML, remarkDiagram, remarkEmoji],
rehypePlugins: [rehypeMermaid, rehypeKatex]
},
scopedStyleStrategy: 'where'
})