2024-12-25 02:14:10 -05:00
|
|
|
import { defineConfig } from "astro/config";
|
2025-03-08 19:45:21 -05:00
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
import sitemap from "@astrojs/sitemap";
|
2024-12-25 02:14:10 -05:00
|
|
|
import remarkToc from "remark-toc";
|
|
|
|
import remarkCollapse from "remark-collapse";
|
|
|
|
import { SITE } from "./src/config";
|
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
|
|
|
site: SITE.website,
|
|
|
|
integrations: [
|
2025-03-08 19:45:21 -05:00
|
|
|
sitemap({
|
|
|
|
filter: page => SITE.showArchives || !page.endsWith("/archives"),
|
2024-12-25 02:14:10 -05:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
markdown: {
|
2025-03-08 19:45:21 -05:00
|
|
|
remarkPlugins: [remarkToc, [remarkCollapse, { test: "Table of contents" }]],
|
2024-12-25 02:14:10 -05:00
|
|
|
shikiConfig: {
|
|
|
|
// For more themes, visit https://shiki.style/themes
|
2025-03-08 19:45:21 -05:00
|
|
|
themes: { light: "min-light", dark: "night-owl" },
|
2024-12-25 02:14:10 -05:00
|
|
|
wrap: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
vite: {
|
2025-03-08 19:45:21 -05:00
|
|
|
plugins: [tailwindcss()],
|
2024-12-25 02:14:10 -05:00
|
|
|
optimizeDeps: {
|
|
|
|
exclude: ["@resvg/resvg-js"],
|
|
|
|
},
|
|
|
|
},
|
2025-03-08 19:45:21 -05:00
|
|
|
image: {
|
|
|
|
// Used for all Markdown images; not configurable per-image
|
|
|
|
// Used for all `<Image />` and `<Picture />` components unless overridden with a prop
|
|
|
|
experimentalLayout: "responsive",
|
|
|
|
},
|
2025-01-19 21:33:22 -05:00
|
|
|
experimental: {
|
2025-03-08 19:45:21 -05:00
|
|
|
svg: true,
|
|
|
|
responsiveImages: true,
|
2025-01-19 21:33:22 -05:00
|
|
|
},
|
2024-12-25 02:14:10 -05:00
|
|
|
});
|