-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
57 lines (52 loc) · 1.3 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
import { defineConfig } from 'astro/config'
import path, { dirname } from 'path'
import { fileURLToPath } from 'url'
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
import preact from '@astrojs/preact'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import rehypeSlug from 'rehype-slug'
import remarkSmartypants from 'remark-smartypants'
import { iframe } from './src/utils/integrations/iframe'
export default defineConfig({
site: 'https://nulllogic.github.io',
// adding sub directory ( it's required for github pages )
base: import.meta.env.PROD ? '/scssleon-docs' : '',
integrations: [mdx(), sitemap(), preact(), iframe()],
compressHTML: true,
output: 'static',
markdown: {
// Override with our own config
smartypants: true,
remarkPlugins: [
[remarkSmartypants, { dashes: false }],
],
rehypePlugins: [
rehypeSlug,
],
shikiConfig: {
theme: 'github-dark-default',
themes: {
dark: 'github-dark-default',
light: 'github-dark-default',
},
},
},
security: {
checkOrigin: true,
},
vite: {
css: {
preprocessorOptions: {},
},
},
devToolbar: {
enabled: false,
},
resolve: {
alias: {
'~': path.resolve(__dirname, './src'),
},
},
})