-
-
Notifications
You must be signed in to change notification settings - Fork 325
/
Copy pathastro.config.mjs
38 lines (34 loc) · 948 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
38
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";
// theme derivated from https://raw.githubusercontent.com/shikijs/textmate-grammars-themes/main/packages/tm-themes/themes/vesper.json
import syntaxTheme from "./src/lib/shiki/theme.json";
import favicons from "astro-favicons";
// https://astro.build/config
export default defineConfig({
output: "static",
site: "https://nixos.org",
integrations: [tailwind(), mdx(), sitemap(), icon({
include: {
mdi: ["*"],
simpleIcons: ["*"],
},
}), favicons({
name: "Nix & NixOS",
short_name: "Nix & NixOS",
manifest: {
start_url: "/",
}
})],
legacy: {
collections: true, // TODO: migrate to Content Layer API
},
markdown: {
shikiConfig: {
theme: syntaxTheme,
},
},
compressHTML: true,
});