Repository navigation
Expand file tree
/
Copy pathastro.config.ts
More file actions
55 lines (54 loc) · 1.43 KB
/
Copy pathastro.config.ts
File metadata and controls
55 lines (54 loc) · 1.43 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
45
46
47
48
49
50
51
52
53
54
55
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig, fontProviders } from "astro/config";
import { toAstroRedirects } from "./src/data/redirects";
export default defineConfig({
site: "https://elixir-lang.org",
trailingSlash: "always",
redirects: toAstroRedirects(),
build: { concurrency: 8 },
image: {
responsiveStyles: true,
},
markdown: {
shikiConfig: {
themes: { light: "github-light", dark: "github-dark" },
// Shiki accepts these as bundled-language ids at runtime, but the
// exported LanguageRegistration type doesn't model the string form.
langs: [
"elixir",
"erlang",
"bash",
"typescript",
"javascript",
"html",
"css",
"json",
// biome-ignore lint/suspicious/noExplicitAny: shiki langs cast - see above
] as any,
wrap: true,
},
},
experimental: {
fonts: [
{
cssVariable: "--font-dm-sans",
name: "DM Sans",
provider: fontProviders.google(),
weights: [300, 400, 500, 600, 700],
},
{
cssVariable: "--font-dm-mono",
name: "DM Mono",
provider: fontProviders.google(),
weights: [300, 400, 500],
},
],
},
integrations: [react(), mdx(), sitemap()],
vite: {
plugins: [tailwindcss()],
},
});