-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
executable file
·41 lines (38 loc) · 1.48 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
import { defineConfig } from 'astro/config';
import remarkFigureCaption from '@microflash/remark-figure-caption';
import remarkDirective from 'remark-directive';
import remarkCalloutDirectives from "./src/components/mdrenders/remark-callout-directives-customized.mjs"
import remarkNeoDB from "./src/components/mdrenders/remark-neodb-card.mjs"
import { remarkReadingTime } from './src/components/mdrenders/remark-reading-time.mjs';
import { remarkModifiedTime } from './src/components/mdrenders/remark-modified-time.mjs';
import { pluginCollapsibleSections } from '@expressive-code/plugin-collapsible-sections'
import sitemap from '@astrojs/sitemap';
import expressiveCode from "astro-expressive-code";
// https://astro.build/config
export default defineConfig({
site: 'https://blog.asyncx.top',
integrations: [sitemap(),
expressiveCode({
plugins: [pluginCollapsibleSections()],
themes: ['material-theme-ocean'],
styleOverrides: {
// You can also override styles
borderRadius: '10px',
borderWidth: '1px',
frames: {
},
},
defaultProps: {
// Enable word wrap by default
wrap: true,
// Disable wrapped line indentation for terminal languages
overridesByLang: {
// 'bash,ps,sh': { preserveIndent: false },
},
},
})
],
markdown: {
remarkPlugins: [remarkFigureCaption, remarkNeoDB, remarkDirective, remarkCalloutDirectives, remarkReadingTime, remarkModifiedTime],
}
});