Skip to content

Commit e2d20ac

Browse files
committed
refactor: remove vitepress-openapi dependency from package.json and pnpm-lock.yaml
- Deleted vitepress-openapi from devDependencies in package.json. - Removed all references to vitepress-openapi in pnpm-lock.yaml, including its version and dependencies. - Cleaned up unused dependencies related to floating-ui and vueuse packages in pnpm-lock.yaml.
1 parent 29a388a commit e2d20ac

File tree

5 files changed

+2
-578
lines changed

5 files changed

+2
-578
lines changed

.vitepress/config.mjs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export default defineConfig({
2828
{ text: "开始", link: "/what-is-astrbot" },
2929
{ text: "博客", link: "https://blog.astrbot.app" },
3030
{ text: "路线图", link: "https://astrbot.featurebase.app/roadmap" },
31-
{ text: "HTTP API", link: "https://docs.astrbot.app/scalar.html" },
3231
],
3332
sidebar: [
3433
{
@@ -205,10 +204,6 @@ export default defineConfig({
205204
text: "接入平台适配器",
206205
link: "/plugin-platform-adapter",
207206
},
208-
{
209-
text: "AstrBot HTTP API",
210-
link: "/openapi",
211-
},
212207
],
213208
},
214209
{
@@ -261,7 +256,6 @@ export default defineConfig({
261256
nav: [
262257
{ text: "Home", link: "/en/" },
263258
{ text: "Get Started", link: "/en/what-is-astrbot" },
264-
{ text: "HTTP API", link: "https://docs.astrbot.app/scalar.html" },
265259
],
266260
sidebar: [
267261
{
@@ -431,10 +425,6 @@ export default defineConfig({
431425
text: "Platform Adapter Integration",
432426
link: "/plugin-platform-adapter",
433427
},
434-
{
435-
text: "AstrBot HTTP API",
436-
link: "/openapi",
437-
},
438428
],
439429
},
440430
{

.vitepress/theme/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// https://vitepress.dev/guide/custom-theme
22
import { h } from 'vue'
33
import DefaultTheme from 'vitepress/theme'
4-
import { theme as openapiTheme, useOpenapi } from 'vitepress-openapi/client'
5-
import 'vitepress-openapi/dist/style.css'
6-
import openapiSpec from '../../public/openapi.json'
74
import './styles/style.css'
85
import './styles/custom-block.css'
96
import './styles/font.css'
@@ -13,13 +10,6 @@ import NotFound from './components/NotFound.vue'
1310
/** @type {import('vitepress').Theme} */
1411
export default {
1512
extends: DefaultTheme,
16-
enhanceApp(ctx) {
17-
openapiTheme.enhanceApp(ctx)
18-
useOpenapi({
19-
app: ctx.app,
20-
spec: openapiSpec
21-
})
22-
},
2313
Layout() {
2414
return h(DefaultTheme.Layout, null, {
2515
// https://vitepress.dev/guide/extending-default-theme#layout-slots

0 commit comments

Comments
 (0)