-
Notifications
You must be signed in to change notification settings - Fork 69
/
astro.config.mjs
58 lines (57 loc) · 1.49 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
import alpinejs from "@astrojs/alpinejs";
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
import expressiveCode from "astro-expressive-code";
import icon from "astro-icon";
import { defineConfig } from "astro/config";
import rehypeExternalLinks from "rehype-external-links";
import remarkEmoji from "remark-emoji";
import remarkHeadingId from "remark-heading-id";
export default defineConfig({
integrations: [
alpinejs({
entrypoint: "./src/entrypoint",
}),
expressiveCode({
themes: ["github-dark"],
emitExternalStylesheet: true,
defaultProps: {
showLineNumbers: false,
},
plugins: [pluginCollapsibleSections(), pluginLineNumbers()],
styleOverrides: {
codeFontSize: "1rem",
uiFontSize: "1rem",
},
}),
icon(),
mdx({
//gfm: true,
remarkPlugins: [remarkEmoji, remarkHeadingId],
}),
sitemap(),
tailwind(),
react(),
],
markdown: {
rehypePlugins: [
[
rehypeExternalLinks,
{ rel: ["nofollow noopener noreferrer"], target: "_blank" },
],
],
},
prefetch: {
prefetchAll: true,
defaultStrategy: "hover",
},
server: {
open: true,
port: 3000,
},
site: "https://zero-to-nix.com",
});