-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathastro.config.mjs
More file actions
41 lines (38 loc) · 1.18 KB
/
Copy pathastro.config.mjs
File metadata and controls
41 lines (38 loc) · 1.18 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
// @ts-check
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import tailwindcss from "@tailwindcss/vite";
import okfTarball from "./astro-okf-tarball.mjs";
const SITE = "https://specification.website";
// Sitemaps are generated by per-category endpoints under src/pages/sitemap-*.xml.ts
// instead of @astrojs/sitemap, so each category gets its own file and the index
// can be reported on separately in Search Console.
// https://astro.build/config
export default defineConfig({
site: SITE,
integrations: [mdx(), okfTarball()],
vite: {
plugins: [tailwindcss()],
},
server: {
port: 31337,
host: true,
},
markdown: {
shikiConfig: {
// Dual themes emit per-token --shiki-light / --shiki-dark CSS variables
// instead of baking one theme's colours inline. global.css then selects
// between them with light-dark(), so code blocks follow the same
// OS-default + [data-theme] override mechanism as the rest of the site.
themes: {
light: "github-light-default",
dark: "github-dark-default",
},
defaultColor: false,
wrap: true,
},
},
build: {
inlineStylesheets: "auto",
},
});