forked from cirry/astro-yi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
34 lines (31 loc) · 1.43 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 mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
import solid from '@astrojs/solid-js';
import remarkDirective from "remark-directive";
import expressiveCode from "astro-expressive-code";
import {pluginLineNumbers} from '@expressive-code/plugin-line-numbers'
import {pluginCollapsibleSections} from '@expressive-code/plugin-collapsible-sections'
import {remarkModifiedTime,} from "./src/plugins/remark-modified-time.mjs";
import {resetRemark} from "./src/plugins/reset-remark.js";
import {remarkAsides} from './src/plugins/remark-asides.js'
import {remarkCollapse} from "./src/plugins/remark-collapse.js";
import {remarkGithubCard} from './src/plugins/remark-github-card.js'
import {lazyLoadImage} from "./src/plugins/lazy-load-image.js";
export default defineConfig({
site: 'https://vishysblog.netlify.app',
integrations: [sitemap(), tailwind(), solid(), expressiveCode({
plugins: [pluginLineNumbers(), pluginCollapsibleSections()],
themes: ["github-dark", "github-light"],
styleOverrides: {
codeFontFamily: "jetbrains-mono",
uiFontFamily: "jetbrains-mono",
},
themeCssSelector: (theme) => `[data-theme="${theme.type}"]`
}), mdx()],
markdown: {
remarkPlugins: [remarkModifiedTime, resetRemark, remarkDirective, remarkAsides({}),remarkCollapse({}),remarkGithubCard()],
rehypePlugins: [lazyLoadImage],
}
});