-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
44 lines (42 loc) · 1.07 KB
/
astro.config.ts
File metadata and controls
44 lines (42 loc) · 1.07 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
// @ts-check
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import relativeMdLinks from "astro-rehype-relative-markdown-links";
import externalLinks from "rehype-external-links";
import pagefind from "astro-pagefind";
import sitemap from "@astrojs/sitemap";
import site from "./src/site.json";
import { rehypeRemoveH1, elementArrow } from "./src/lib/rehype";
import { serializeSitemap } from "./src/lib/sitemap";
import svelte from "@astrojs/svelte";
// https://astro.build/config
export default defineConfig({
site: site.url,
prefetch: true,
integrations: [
pagefind(),
sitemap({
lastmod: new Date(),
changefreq: "weekly",
priority: 0.7,
serialize: serializeSitemap,
}),
svelte({ extensions: [".svelte"] }),
],
markdown: {
rehypePlugins: [
relativeMdLinks,
[externalLinks, elementArrow],
rehypeRemoveH1,
],
shikiConfig: {
themes: {
light: "github-light",
dark: "github-dark",
},
},
},
vite: {
plugins: [tailwindcss()],
},
});