-
-
Notifications
You must be signed in to change notification settings - Fork 547
Expand file tree
/
Copy pathastro.config.ts
More file actions
35 lines (34 loc) · 1012 Bytes
/
astro.config.ts
File metadata and controls
35 lines (34 loc) · 1012 Bytes
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
import mdx from '@astrojs/mdx';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import { defineConfig } from 'astro/config';
import expressiveCode from 'astro-expressive-code';
import pagefind from 'astro-pagefind';
import remarkDirective from 'remark-directive';
import { remarkAdmonitions } from './src/plugins/remark-admonitions.mjs';
import { remarkReadingTime } from './src/plugins/remark-reading-time.mjs';
export default defineConfig({
site: 'https://spicetify.app',
trailingSlash: 'never',
build: {
format: 'file',
},
markdown: {
remarkPlugins: [remarkDirective, remarkAdmonitions, remarkReadingTime],
},
integrations: [
expressiveCode({
themes: ['github-light', 'dracula'],
useDarkModeMediaQuery: false,
themeCssSelector: (theme) =>
`[data-theme='${theme.type === 'dark' ? 'dark' : 'light'}']`,
}),
mdx(),
react(),
sitemap(),
pagefind(),
],
redirects: {
'/docs/blog/authors': '/blog',
},
});