Files
trailbase/docs/astro.config.mjs
T
Sebastian Jeltsch f0e5570f96 Update website to Tailwind v4.
Everything else is still on Tailwind v3, since we depend on solid-ui,
which doesn't yet support v4:
https://github.com/stefan-karger/solid-ui/issues/166#issuecomment-2822360321,
however this way we can build some familiarity with the new system.

Sadly, the tailwind eslint plugin had to be disabled because it doesn't
support v4 and the v4 alpha is completely disfunct:
https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/325.
2025-04-24 10:40:51 +02:00

98 lines
2.4 KiB
JavaScript

import { defineConfig } from "astro/config";
import icon from "astro-icon";
import robotsTxt from "astro-robots-txt";
import sitemap from "@astrojs/sitemap";
import solid from "@astrojs/solid-js";
import starlight from "@astrojs/starlight";
import starlightLinksValidator from "starlight-links-validator";
import tailwindcss from "@tailwindcss/vite";
// https://astro.build/config
export default defineConfig({
site: "https://trailbase.io",
integrations: [
icon(),
robotsTxt(),
sitemap(),
solid(),
starlight({
title: "TrailBase",
customCss: ["./src/styles/global.css"],
social: [
{
icon: "github",
label: "GitHub",
href: "https://github.com/trailbaseio/trailbase",
},
{
icon: "discord",
label: "Discord",
href: "https://discord.gg/X8cWs7YC22",
},
],
plugins: [
starlightLinksValidator({
exclude: ["http://localhost:4000/", "http://localhost:4000/**/*"],
}),
],
sidebar: [
{
label: "Getting Started",
items: [
{
label: "Starting Up",
slug: "getting-started/starting-up",
},
{
label: "Tutorials",
items: [
{
label: "API, Vector Search & UI",
slug: "getting-started/first-ui-app",
},
{
label: "Data CLI",
slug: "getting-started/first-cli-app",
},
{
label: "Realtime Sync & SSR",
slug: "getting-started/first-realtime-app",
},
],
},
{
label: "Our Goals",
slug: "getting-started/goals",
},
],
},
{
label: "Documentation",
autogenerate: {
directory: "documentation",
},
},
{
label: "Comparisons",
autogenerate: {
directory: "comparison",
},
},
{
label: "Reference",
autogenerate: {
directory: "reference",
},
},
],
components: {
Footer: "./src/components/Footer.astro",
},
}),
],
vite: {
plugins: [tailwindcss()],
},
});