From 19912e5309607b21eab7b6b9c8fc9952fad8003c Mon Sep 17 00:00:00 2001 From: jdysya <1912377458@qq.com> Date: Tue, 18 Feb 2025 17:47:41 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E5=B9=B6=E9=85=8D=E7=BD=AE=20PDF.js=20=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除侧边栏中的幻灯片链接 - 更新 PDF.js 服务地址为 https://pdfjs.jdysya.top/ - 注释掉本地 PDF.js 路径,使用外部服务 --- doc/src/.vuepress/sidebar.ts | 5 ----- doc/src/.vuepress/theme.ts | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/src/.vuepress/sidebar.ts b/doc/src/.vuepress/sidebar.ts index 0518222..8549903 100644 --- a/doc/src/.vuepress/sidebar.ts +++ b/doc/src/.vuepress/sidebar.ts @@ -17,10 +17,5 @@ export default sidebar({ link: "origin/", children: "structure", }, - { - text: "幻灯片", - icon: "person-chalkboard", - link: "https://ecosystem.vuejs.press/zh/plugins/markdown/revealjs/demo.html", - }, ], }); diff --git a/doc/src/.vuepress/theme.ts b/doc/src/.vuepress/theme.ts index f950ac9..5ec9a83 100644 --- a/doc/src/.vuepress/theme.ts +++ b/doc/src/.vuepress/theme.ts @@ -136,7 +136,8 @@ export default hopeTheme({ components: ["Badge", "VPCard", "PDF"], componentOptions: { pdf: { - pdfjs: '/pdfjs/', // 假设 PDF.js 放在 public/pdfjs/web/ + pdfjs: 'https://pdfjs.jdysya.top/', + // pdfjs: '/pdfjs/', // 假设 PDF.js 放在 public/pdfjs/web/ }, }, },