11// @ts -check
22
3-
43import react from "@astrojs/react" ;
54import starlight from "@astrojs/starlight" ;
65import { defineConfig } from "astro/config" ;
@@ -9,71 +8,92 @@ import starlightLinksValidator from "starlight-links-validator";
98
109// https://astro.build/config
1110export default defineConfig ( {
12- site : "https://united-codes.com/products/uc-ai/docs" ,
13- base : "/products/uc-ai/docs" ,
14- integrations : [ starlight ( {
15- title : "UC AI" ,
16- logo : {
17- src : "./src/assets/logo/logo-horizontal-primary-dark.svg" ,
18- } ,
19- social : [
20- {
21- icon : "github" ,
22- label : "GitHub" ,
23- href : "https://github.com/United-Codes/uc_ai" ,
24- } ,
25- {
26- icon : "linkedin" ,
27- label : "LinkedIn" ,
28- href : "https://www.linkedin.com/company/united-codes/" ,
29- } ,
30- {
31- icon : "x.com" ,
32- label : "X/Twitter" ,
33- href : "https://x.com/united_codes" ,
34- } ,
35- {
36- icon : "blueSky" ,
37- label : "Bluesky" ,
38- href : "https://bsky.app/profile/united-codes.com" ,
39- } ,
40- {
41- icon : "youtube" ,
42- label : "YouTube" ,
43- href : "https://www.youtube.com/@united-codes" ,
44- } ,
45- ] ,
46- sidebar : [
47- {
48- label : "UC AI" ,
49- items : [ "index" ] ,
50- } ,
51- {
52- label : "Guides" ,
53- autogenerate : { directory : "guides" } ,
54- } ,
55- {
56- label : "Providers" ,
57- autogenerate : { directory : "providers" } ,
58- } ,
59- {
60- label : "API Reference" ,
61- autogenerate : { directory : "api" } ,
62- } ,
63- {
64- label : "Other" ,
65- autogenerate : { directory : "other" } ,
66- } ,
67- ] ,
68- customCss : [ "./src/styles/uc.css" ] ,
69- components : {
70- Footer : "./src/components/Footer.astro" ,
71- Head : "./src/components/Head.astro" ,
72- PageFrame : "./src/components/PageFrame.astro" ,
73- } ,
74- plugins : [
75- starlightLinksValidator ( { errorOnLocalLinks : false } ) ,
76- starlightImageZoom ( ) ,
77- ] ,
78- } ) , react ( ) ] ,
11+ site : "https://united-codes.com/products/uc-ai/docs" ,
12+ base : "/products/uc-ai/docs" ,
13+ integrations : [
14+ starlight ( {
15+ title : "UC AI" ,
16+ logo : {
17+ src : "./src/assets/logo/logo-horizontal-primary-dark.svg" ,
18+ } ,
19+ social : [
20+ {
21+ icon : "github" ,
22+ label : "GitHub" ,
23+ href : "https://github.com/United-Codes/uc_ai" ,
24+ } ,
25+ {
26+ icon : "linkedin" ,
27+ label : "LinkedIn" ,
28+ href : "https://www.linkedin.com/company/united-codes/" ,
29+ } ,
30+ {
31+ icon : "x.com" ,
32+ label : "X/Twitter" ,
33+ href : "https://x.com/united_codes" ,
34+ } ,
35+ {
36+ icon : "blueSky" ,
37+ label : "Bluesky" ,
38+ href : "https://bsky.app/profile/united-codes.com" ,
39+ } ,
40+ {
41+ icon : "youtube" ,
42+ label : "YouTube" ,
43+ href : "https://www.youtube.com/@united-codes" ,
44+ } ,
45+ ] ,
46+ sidebar : [
47+ {
48+ label : "UC AI" ,
49+ items : [ "index" ] ,
50+ } ,
51+ {
52+ label : "Guides" ,
53+ collapsed : false ,
54+ items : [
55+ "guides/installation" ,
56+ "guides/providers" ,
57+ "guides/reasoning" ,
58+ "guides/structured_output" ,
59+ "guides/tools" ,
60+ "guides/prompt-profiles" ,
61+ "guides/agentic-ai" ,
62+ {
63+ label : "Multi-Agent Systems" ,
64+ autogenerate : { directory : "guides/multi-agent-systems" } ,
65+ badge : {
66+ text : "WIP" ,
67+ variant : "caution" ,
68+ } ,
69+ } ,
70+ "guides/toon" ,
71+ ] ,
72+ } ,
73+ {
74+ label : "Providers" ,
75+ autogenerate : { directory : "providers" } ,
76+ } ,
77+ {
78+ label : "API Reference" ,
79+ autogenerate : { directory : "api" } ,
80+ } ,
81+ {
82+ label : "Other" ,
83+ autogenerate : { directory : "other" } ,
84+ } ,
85+ ] ,
86+ customCss : [ "./src/styles/uc.css" ] ,
87+ components : {
88+ Footer : "./src/components/Footer.astro" ,
89+ Head : "./src/components/Head.astro" ,
90+ PageFrame : "./src/components/PageFrame.astro" ,
91+ } ,
92+ plugins : [
93+ starlightLinksValidator ( { errorOnLocalLinks : false } ) ,
94+ starlightImageZoom ( ) ,
95+ ] ,
96+ } ) ,
97+ react ( ) ,
98+ ] ,
7999} ) ;
0 commit comments