* 更新主题配置文件

🔧配置更改
1. 隐藏页面下方的“在 Github 上”编辑按钮

* 更细顶栏配置文件

🐛配置修复
1. 删除无用配置信息

* 更新 CI 部署流程

🐛配置修复
1. 修复了 @vuepress/plugin-git 无法正常获取 Git 提交信息的问题
This commit is contained in:
狮子耗耗 2024-11-09 08:43:14 +08:00 committed by GitHub
parent 6b6f6a41d7
commit 2c256dd21a
3 changed files with 9 additions and 24 deletions

View File

@ -13,23 +13,25 @@ jobs:
steps: steps:
- name: 🚚 Checkout - name: 🚚 Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
name: Install pnpm name: 🔧Install pnpm
with: with:
version: 9 version: 9
run_install: false run_install: false
- name: Install Node.js - name: 🔧Install Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 20 node-version: 20
cache: 'pnpm' cache: 'pnpm'
- name: Install dependencies - name: 🔧Install dependencies
run: pnpm install run: pnpm install
- name: Build doc - name: 🔴Build doc
run: pnpm run docs:build run: pnpm run docs:build
- name: 📂 Sync files - name: 📂 Sync files

View File

@ -5,23 +5,4 @@ export default navbar([
"/reference/", "/reference/",
"/spbook/", "/spbook/",
"/other/" "/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: "" }],
// },
// ],
// },
]); ]);

View File

@ -87,8 +87,10 @@ export default hopeTheme({
type: "katex", type: "katex",
}, },
markdownTab: true, markdownTab: true,
git: true
}, },
pageInfo: [ pageInfo: [
"Author", "Date", "ReadingTime", "Word" "Author", "Date", "ReadingTime", "Word"
] ],
editLink: false,
}); });