-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
58 lines (53 loc) · 1.56 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 { defineConfig } from "astro/config";
import react from "@astrojs/react";
import tailwindcss from "@tailwindcss/vite";
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import mdx from "@astrojs/mdx";
import { shield } from "@kindspells/astro-shield";
import { transformerCopyButton } from "@rehype-pretty/transformers/copy-button";
import rehypePrettyCode from "rehype-pretty-code";
import remarkDirective from "remark-directive";
import rehypeTabs from "./src/plugins/rehype-tabs";
import remarkCallout from "./src/plugins/remark-callout";
import remarkDetour from "./src/plugins/remark-detour";
import remarkExercises from "./src/plugins/remark-exercises";
import remarkHandsOn from "./src/plugins/remark-hands-on";
import remarkSteps from "./src/plugins/remark-steps";
import remarkTabs from "./src/plugins/remark-tabs";
export default defineConfig({
site: "https://git-mastery.github.io",
base: "/learning-lab",
markdown: {
syntaxHighlight: false,
remarkPlugins: [
remarkDirective,
remarkCallout,
remarkTabs,
remarkSteps,
remarkExercises,
remarkHandsOn,
remarkDetour,
],
rehypePlugins: [
rehypeHeadingIds,
rehypeTabs,
[
rehypePrettyCode,
{
theme: "dracula",
transformers: [
transformerCopyButton({
visibility: "hover",
feedbackDuration: 3_000,
}),
],
},
],
],
gfm: true,
},
integrations: [react(), mdx(), shield({})],
vite: {
plugins: [tailwindcss()],
},
});