Files
site-documentation/astro.config.mjs
Alex Lebens 44e39d08d9
All checks were successful
test-build / build (push) Successful in 29s
renovate / renovate (push) Successful in 52s
add catppuccin theme
2025-08-01 20:35:32 -05:00

65 lines
1.3 KiB
JavaScript

// @ts-check
import { defineConfig } from "astro/config";
import node from "@astrojs/node";
import tailwindcss from "@tailwindcss/vite";
import starlight from "@astrojs/starlight";
import catppuccin from "@catppuccin/starlight";
const getSiteURL = () => {
if (process.env.SITE_URL) {
return `https://${process.env.SITE_URL}`;
}
return "http://localhost:4321";
};
// https://astro.build/config
export default defineConfig({
site: getSiteURL(),
integrations: [
tailwindcss(),
starlight({
title: "My Docs",
social: [
{
icon: "github",
label: "GitHub",
href: "https://github.com/withastro/starlight",
},
],
plugins: [
catppuccin({
dark: { flavor: "macchiato", accent: "sapphire" },
light: { flavor: "latte", accent: "sky" }
})
],
sidebar: [
{
label: "Guides",
items: [
// Each item here is one entry in the navigation menu.
{ label: "Example Guide", slug: "guides/example" },
],
},
{
label: "Reference",
autogenerate: { directory: "reference" },
},
],
}),
],
plugins: {
"@tailwindcss/postcss": {},
},
vite: {
plugins: [tailwindcss()],
},
adapter: node({
mode: "standalone",
}),
});