Files
clan-core/tested-trappist/astro.config.mjs
Johannes Kirschbauer be4cd657c9 POC
2025-09-17 14:32:46 +02:00

59 lines
1.4 KiB
JavaScript

// @ts-check
import { defineConfig } from "astro/config";
import starlightOpenAPI, { openAPISidebarGroups } from "starlight-openapi";
import starlight from "@astrojs/starlight";
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: "Clan",
favicon: "/public/favicon.svg",
// logo: { src: "/public/logo.svg", alt: "Clan Logo" },
social: [
{
icon: "seti:git",
label: "Git",
href: "https://git.clan.lol/clan/clan-core",
},
],
plugins: [
// Generate the OpenAPI documentation pages.
starlightOpenAPI([
{
base: "api",
schema: "openapi.json",
sidebar: {
collapsed: true,
label: "Internal API",
},
},
]),
],
sidebar: [
{
label: "Getting Started",
autogenerate: { directory: "getting-started" },
collapsed: false,
},
{
label: "Guides",
autogenerate: { directory: "guides" },
collapsed: false,
},
{
label: "Reference",
items: [
{
label: "Clan Services",
autogenerate: { directory: "reference/clanServices" },
collapsed: false,
},
...openAPISidebarGroups,
],
},
],
}),
],
});