-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathastro.config.ts
More file actions
56 lines (53 loc) · 1.54 KB
/
astro.config.ts
File metadata and controls
56 lines (53 loc) · 1.54 KB
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
// @ts-check
import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import tailwindcss from "@tailwindcss/vite";
import mdx from "@astrojs/mdx";
import remarkGfm from 'remark-gfm';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import { linkChecker } from './integrations/link-checker';
import icon from "astro-icon";
// https://astro.build/config
export default defineConfig({
site: 'https://opensource.block.xyz',
base: '/',
integrations: [
icon(),
mdx({
remarkPlugins: [remarkGfm],
rehypePlugins: [rehypeSlug, rehypeAutolinkHeadings],
//extendDefaultPlugins: true
}),
react(),
linkChecker({
failOnError: true, // Fail build on broken links
checkExternal: false, // Set to true to check external links
exclude: ['#', 'mailto:', 'tel:', 'example.com'],
timeout: 5000, // Timeout for external requests
verbose: false, // Show warnings even when build succeeds
logFile: 'link-check-results.json' // Save results to a JSON file
})
],
markdown: {
remarkPlugins: [remarkGfm],
rehypePlugins: [rehypeSlug, rehypeAutolinkHeadings],
shikiConfig: {
themes: {
light: 'github-light',
dark: 'github-dark'
},
wrap: true,
// Remove default theme application
defaultColor: 'light'
}
},
vite: {
plugins: [tailwindcss()],
resolve: {
alias: {
"@": "/src",
},
},
},
});