Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 88 additions & 68 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// @ts-check


import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
Expand All @@ -9,71 +8,92 @@ import starlightLinksValidator from "starlight-links-validator";

// https://astro.build/config
export default defineConfig({
site: "https://united-codes.com/products/uc-ai/docs",
base: "/products/uc-ai/docs",
integrations: [starlight({
title: "UC AI",
logo: {
src: "./src/assets/logo/logo-horizontal-primary-dark.svg",
},
social: [
{
icon: "github",
label: "GitHub",
href: "https://github.com/United-Codes/uc_ai",
},
{
icon: "linkedin",
label: "LinkedIn",
href: "https://www.linkedin.com/company/united-codes/",
},
{
icon: "x.com",
label: "X/Twitter",
href: "https://x.com/united_codes",
},
{
icon: "blueSky",
label: "Bluesky",
href: "https://bsky.app/profile/united-codes.com",
},
{
icon: "youtube",
label: "YouTube",
href: "https://www.youtube.com/@united-codes",
},
],
sidebar: [
{
label: "UC AI",
items: ["index"],
},
{
label: "Guides",
autogenerate: { directory: "guides" },
},
{
label: "Providers",
autogenerate: { directory: "providers" },
},
{
label: "API Reference",
autogenerate: { directory: "api" },
},
{
label: "Other",
autogenerate: { directory: "other" },
},
],
customCss: ["./src/styles/uc.css"],
components: {
Footer: "./src/components/Footer.astro",
Head: "./src/components/Head.astro",
PageFrame: "./src/components/PageFrame.astro",
},
plugins: [
starlightLinksValidator({ errorOnLocalLinks: false }),
starlightImageZoom(),
],
}), react()],
site: "https://united-codes.com/products/uc-ai/docs",
base: "/products/uc-ai/docs",
integrations: [
starlight({
title: "UC AI",
logo: {
src: "./src/assets/logo/logo-horizontal-primary-dark.svg",
},
social: [
{
icon: "github",
label: "GitHub",
href: "https://github.com/United-Codes/uc_ai",
},
{
icon: "linkedin",
label: "LinkedIn",
href: "https://www.linkedin.com/company/united-codes/",
},
{
icon: "x.com",
label: "X/Twitter",
href: "https://x.com/united_codes",
},
{
icon: "blueSky",
label: "Bluesky",
href: "https://bsky.app/profile/united-codes.com",
},
{
icon: "youtube",
label: "YouTube",
href: "https://www.youtube.com/@united-codes",
},
],
sidebar: [
{
label: "UC AI",
items: ["index"],
},
{
label: "Guides",
collapsed: false,
items: [
"guides/installation",
"guides/providers",
"guides/reasoning",
"guides/structured_output",
"guides/tools",
"guides/prompt-profiles",
"guides/agentic-ai",
{
label: "Multi-Agent Systems",
autogenerate: { directory: "guides/multi-agent-systems" },
badge: {
text: "WIP",
variant: "caution",
},
},
"guides/toon",
],
},
{
label: "Providers",
autogenerate: { directory: "providers" },
},
{
label: "API Reference",
autogenerate: { directory: "api" },
},
{
label: "Other",
autogenerate: { directory: "other" },
},
],
customCss: ["./src/styles/uc.css"],
components: {
Footer: "./src/components/Footer.astro",
Head: "./src/components/Head.astro",
PageFrame: "./src/components/PageFrame.astro",
},
plugins: [
starlightLinksValidator({ errorOnLocalLinks: false }),
starlightImageZoom(),
],
}),
react(),
],
});
Loading
Loading