Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
4.0 kB · 131 lines
JavaScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132// @ts-checkimport starlight from "@astrojs/starlight";import { defineConfig, passthroughImageService } from "astro/config";import starlightOpenAPI, { openAPISidebarGroups } from "starlight-openapi";import starlightSidebarSwipe from "starlight-sidebar-swipe";import starlightSidebarTopics from "starlight-sidebar-topics";
// https://astro.build/configexport default defineConfig({ base: "/docs", image: { service: passthroughImageService(), }, integrations: [ starlight({ title: "Streamplace Docs", customCss: [ "@fontsource/atkinson-hyperlegible-next/400.css", "@fontsource/atkinson-hyperlegible-next/600.css", "./src/styles/custom-font-face.css", "./src/styles/pre-first-table-col.css", "./src/styles/widths.css", ], social: [ { icon: "github", label: "GitHub", href: "https://github.com/streamplace/streamplace", }, ], logo: { light: "/src/assets/logo-light.png", dark: "/src/assets/logo-dark.png", alt: "Streamplace Logo", }, favicon: "/favicon.ico", plugins: [ //starlightLinksValidator(), starlightSidebarSwipe(), starlightOpenAPI([ { base: "/api", label: "Related XRPC API endpoints", schema: "./src/content/docs/lex-reference/openapi.json", // or your json generated from swagger sidebar: { operations: { badges: true, labels: "operationId", }, }, }, ]), starlightSidebarTopics( [ { label: "For Streamers & Viewers", link: "/", icon: "open-book", items: [ { label: "Start Streaming", items: [ { autogenerate: { directory: "guides/start-streaming" } }, ], }, { label: "Features", items: [{ autogenerate: { directory: "features" } }], }, ], }, { label: "For Developers", link: "/developers/", icon: "seti:config", id: "developers", items: [ { label: "Start Contributing", items: [ { autogenerate: { directory: "guides/start-contributing" }, }, ], }, { label: "Installing Streamplace", items: [{ autogenerate: { directory: "guides/installing" } }], }, { label: "Features (Dev)", items: [{ autogenerate: { directory: "features-dev" } }], }, { label: "Video Metadata", items: [{ autogenerate: { directory: "video-metadata" } }], }, { label: "Components", items: [{ autogenerate: { directory: "components" } }], }, { label: "Localize Streamplace", items: [{ autogenerate: { directory: "guides/localizing" } }], }, ], }, { label: "API Reference", link: "/reference/", icon: "seti:json", id: "ref", items: [ { label: "Lexicon Reference", items: [{ autogenerate: { directory: "lex-reference" } }], }, ...openAPISidebarGroups, ], }, ], { topics: { ref: ["/api", "/api/**/*"], }, }, ), ], }), ],});