-
Notifications
You must be signed in to change notification settings - Fork 3
/
astro.config.mjs
85 lines (83 loc) · 2.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import mdx from '@astrojs/mdx'
import prefetch from '@astrojs/prefetch'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import vue from '@astrojs/vue'
import { defineConfig } from 'astro/config'
import { s } from 'hastscript'
export default defineConfig({
root: '.',
srcDir: './docs/src',
publicDir: './docs/public',
outDir: './docs/dist',
site: 'https://vue-mapbox-feature.web.app/',
base: '/',
trailingSlash: 'always',
build: {
format: 'directory',
},
markdown: {
drafts: false,
syntaxHighlight: 'shiki',
shikiConfig: {
theme: 'material-darker',
langs: ['astro'],
wrap: true,
},
remarkPlugins: [
'remark-emoji',
[
'remark-smartypants',
{
dashes: 'oldschool',
},
],
'remark-directive',
],
rehypePlugins: [
'rehype-slug',
[
'rehype-autolink-headings',
{
test: ['h1', 'h2', 'h3'],
behavior: 'prepend',
content(node) {
return [
s(
'svg',
{
xmlns: 'http://www.w3.org/2000/svg',
viewbox: '0 0 20 20',
ariaHidden: 'true',
width: '15px',
height: '15px',
class: 'heading-icon',
},
[
s('title', 'SVG `<path>` element'),
s('path', {
d: 'M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z',
'fill-rule': 'evenodd',
'clip-rule': 'evenodd',
}),
]
),
]
},
},
],
],
},
integrations: [
vue(),
tailwind({
config: {
path: './tailwind.config.cjs',
applyBaseStyles: false,
},
}),
sitemap(),
prefetch(),
mdx(),
],
})