-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
executable file
·32 lines (30 loc) · 1.23 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
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import AutoImport from "astro-auto-import";
import {defineConfig} from "astro/config";
import remarkCollapse from "remark-collapse";
import remarkToc from "remark-toc";
import config from "./src/config/config.json";
import svelte from "@astrojs/svelte";
// https://astro.build/config
export default defineConfig({
site: config.site.base_url ? config.site.base_url : "https://preview.hoehenrettung-bs.de/",
base: config.site.base_path ? config.site.base_path : "/",
trailingSlash: config.site.trailing_slash ? "always" : "never",
integrations: [react(), sitemap(), tailwind({
config: {
applyBaseStyles: false
}
}), AutoImport({
imports: ["@/shortcodes/Button", "@/shortcodes/Accordion", "@/shortcodes/Notice", "@/shortcodes/Video", "@/shortcodes/Youtube", "@/shortcodes/Tabs", "@/shortcodes/Tab"]
}), mdx(), svelte()],
markdown: {
remarkPlugins: [remarkToc, [remarkCollapse, {
test: "Table of contents"
}]], shikiConfig: {
theme: "one-dark-pro", wrap: true
}, extendDefaultPlugins: true
}
});