Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit c825051

Browse files
committed
✨ ⚡️ Update document / API refetences, renew documents, and add updated info
1 parent 5e8c616 commit c825051

25 files changed

+2432
-396
lines changed

astro.config.mjs

+19
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
import { defineConfig } from "astro/config";
22
import starlight from "@astrojs/starlight";
3+
import starlightOpenAPI, { openAPISidebarGroups } from "starlight-openapi";
4+
import starlightLinksValidator from "starlight-links-validator";
35

46
// https://astro.build/config
57
export default defineConfig({
68
integrations: [
79
starlight({
10+
plugins: [
11+
starlightLinksValidator(), // Generate the OpenAPI documentation pages.
12+
starlightOpenAPI([
13+
{
14+
base: "api",
15+
label: "API(ja)",
16+
schema: "./schema/api-schema.yaml",
17+
},
18+
// {
19+
// base: "/en/api",
20+
// label: "API(en)",
21+
// schema: "./schema/api-schema.yaml",
22+
// },
23+
]),
24+
],
825
title: "TutoriaLLM",
926
customCss: [
1027
// カスタムCSSファイルへの相対パス
@@ -14,6 +31,7 @@ export default defineConfig({
1431
],
1532
components: {
1633
SiteTitle: "./src/components/SiteTitle.astro",
34+
Sidebar: "./src/components/Sidebar.astro",
1735
},
1836
// このサイトのデフォルト言語として日本語を設定します。
1937
defaultLocale: "root",
@@ -61,6 +79,7 @@ export default defineConfig({
6179
directory: "reference",
6280
},
6381
},
82+
...openAPISidebarGroups,
6483
],
6584
}),
6685
],

0 commit comments

Comments
 (0)