Skip to content

Commit eabf821

Browse files
astro openapi
1 parent 9e1be93 commit eabf821

File tree

4 files changed

+288
-136
lines changed

4 files changed

+288
-136
lines changed

apps/docs/astro.config.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,13 @@ export default defineConfig({
149149
},
150150
{
151151
label: "API Reference",
152-
link: "https://api.openstatus.dev/v1",
152+
slug: "reference/api-reference",
153+
154+
// link: "https://api.openstatus.dev/v1",
153155
// badge: { text: 'External' },
154-
attrs: {
155-
target: "_blank",
156-
},
156+
// attrs: {
157+
// target: "_blank",
158+
// },
157159
},
158160
{
159161
label: "HTTP Monitor",

apps/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@openpanel/astro": "1.0.1",
2020
"@tailwindcss/vite": "4.1.8",
2121
"astro": "5.13.7",
22+
"@scalar/astro": "0.1.0",
2223
"sharp": "0.33.5",
2324
"starlight-image-zoom": "0.13.0",
2425
"starlight-links-validator": "0.17.2",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: API Reference
3+
template: splash
4+
---
5+
import { ScalarComponent } from '@scalar/astro'
6+
7+
<ScalarComponent configuration={{
8+
url: 'https://api.openstatus.dev/v1/openapi',
9+
}} />

0 commit comments

Comments
 (0)