Skip to content

Commit

Permalink
cd: fix 忘记我已经取消掉后缀名了,所以过滤时没过滤 README
Browse files Browse the repository at this point in the history
  • Loading branch information
Linhieng committed Apr 14, 2024
1 parent 94794e4 commit 51fdd63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
# cache: npm 难道开启缓存,需要 lock 文件?
# cache: npm 难道开启缓存,需要 lock 文件?没错!
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function getOneSidebar(pathPrefix) {
const sidebar = dfsReadme(pathPrefix)

return sidebar
.filter(v => !(v.text === 'README.md'))
.filter(v => !(v.text === 'README.md' || v.text === 'README'))
.map(v => ({ ...v, collapsed: true }))
}
function getSideBar() {
Expand Down

0 comments on commit 51fdd63

Please sign in to comment.