59 lines
1.4 KiB
JavaScript
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,
|
|
],
|
|
},
|
|
],
|
|
}),
|
|
],
|
|
});
|