From 2c256dd21a280cf2bc2f532f75799d4bdf4c7dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8B=AE=E5=AD=90=E8=80=97=E8=80=97?= <3116737282@qq.com> Date: Sat, 9 Nov 2024 08:43:14 +0800 Subject: [PATCH] dev (#10) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 更新主题配置文件 🔧配置更改 1. 隐藏页面下方的“在 Github 上”编辑按钮 * 更细顶栏配置文件 🐛配置修复 1. 删除无用配置信息 * 更新 CI 部署流程 🐛配置修复 1. 修复了 @vuepress/plugin-git 无法正常获取 Git 提交信息的问题 --- .github/workflows/build.yml | 10 ++++++---- src/.vuepress/navbar.ts | 19 ------------------- src/.vuepress/theme.ts | 4 +++- 3 files changed, 9 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51eb11a..ae4f289 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,23 +13,25 @@ jobs: steps: - name: 🚚 Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: pnpm/action-setup@v4 - name: Install pnpm + name: 🔧Install pnpm with: version: 9 run_install: false - - name: Install Node.js + - name: 🔧Install Node.js uses: actions/setup-node@v4 with: node-version: 20 cache: 'pnpm' - - name: Install dependencies + - name: 🔧Install dependencies run: pnpm install - - name: Build doc + - name: 🔴Build doc run: pnpm run docs:build - name: 📂 Sync files diff --git a/src/.vuepress/navbar.ts b/src/.vuepress/navbar.ts index bb1dcbd..77ba656 100644 --- a/src/.vuepress/navbar.ts +++ b/src/.vuepress/navbar.ts @@ -5,23 +5,4 @@ export default navbar([ "/reference/", "/spbook/", "/other/" - // { - // text: "指南", - // icon: "lightbulb", - // prefix: "/guide/", - // children: [ - // { - // text: "Bar", - // icon: "lightbulb", - // prefix: "bar/", - // children: ["baz", { text: "...", icon: "ellipsis", link: "" }], - // }, - // { - // text: "Foo", - // icon: "lightbulb", - // prefix: "foo/", - // children: ["ray", { text: "...", icon: "ellipsis", link: "" }], - // }, - // ], - // }, ]); diff --git a/src/.vuepress/theme.ts b/src/.vuepress/theme.ts index 94b701b..275966a 100644 --- a/src/.vuepress/theme.ts +++ b/src/.vuepress/theme.ts @@ -87,8 +87,10 @@ export default hopeTheme({ type: "katex", }, markdownTab: true, + git: true }, pageInfo: [ "Author", "Date", "ReadingTime", "Word" - ] + ], + editLink: false, }); \ No newline at end of file