-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
executable file
·37 lines (36 loc) · 980 Bytes
/
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
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
import config from "./src/config/config.json";
import { remarkModifiedTime } from "./src/lib/utils/remarkModifiedTime.mjs";
import remarkToc from "remark-toc";
// https://astro.build/config
export default defineConfig({
site: config.site.base_url,
base: config.site.base_path ? config.site.base_path : "/",
trailingSlash: "ignore",
i18n: {
defaultLocale: "ca",
locales: ["ca", "es", "en"],
},
integrations: [
react(),
sitemap(),
tailwind({
config: {
applyBaseStyles: false,
},
}),
mdx(),
],
markdown: {
remarkPlugins: [remarkModifiedTime, [remarkToc, { heading: "Taula de continguts", maxDepth: 4 }]],
shikiConfig: {
theme: "one-dark-pro",
wrap: true,
},
extendDefaultPlugins: true,
},
});