ci(docs): 设置完整检出以支持VuePress部署

设置 actions/checkout 的 fetch-depth 为 0,确保检出完整的 Git 历史记录,这是 vuepress-deploy 操作正确生成页面版本信息所必需的。同时移除配置文件中无关的空行。
This commit is contained in:
anghunk
2026-01-23 20:28:54 +08:00
parent d365f6042f
commit dea5dda044
3 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0
- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master

View File

@@ -33,7 +33,6 @@ export default defineConfig({
{ icon: 'github', link: 'https://github.com/anghunk/cwd' },
{ icon: 'discord', link: 'https://discord.gg/VahC3r7t' },
],
lastUpdated: true,
lastUpdatedText: '最后更新于',
footer: {

3
docs/public/cwd.js Normal file

File diff suppressed because one or more lines are too long