Skip to content

Commit

Permalink
fix: 修正 dev 模式 slug 引发的失败 && 修正 nextPage 总是定向到第一页
Browse files Browse the repository at this point in the history
  • Loading branch information
阮文涛 committed Oct 11, 2023
1 parent bb9d293 commit 23c0b5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- name: Download ossutils zip
- name: Deploy to OSS
run: |
wget https://github.com/aliyun/ossutil/releases/download/v.1.7.17/ossutil-v1.7.17-linux-amd64.zip
unzip ossutil-v1.7.17-linux-amd64.zip && cp ./ossutil-v1.7.17-linux-amd64/ossutil ${{github.workspace}}/ && chmod +x ${{github.workspace}}/ossutil
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.vitepress/cache
node_modules
dist
docs
docs
docs.json
5 changes: 3 additions & 2 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const convertDocsToSidebars = (docs: any) => {
for (const doc of docs) {
let sidebar: DefaultTheme.SidebarItem = {
text: doc.title,
link: 'docs/' + doc.slug,
link: '/docs/' + doc.slug + '.html',
};
if (doc.children.length > 0) {
sidebar.items = convertDocsToSidebars(doc.children);
Expand All @@ -30,7 +30,8 @@ export default defineConfig({
title: "Longbridge Pro Releases",
description: "Longbridge Pro Releases",
ignoreDeadLinks: true,
cleanUrls: true,
// cleanUrl 配合 vx.x.x.html 在 dev 模式下有 bug ,会出现无法访问的情况,暂时关闭,等 vitepress 更新版本解决
// cleanUrls: true,
srcExclude: ['SUMMARY.md'],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
Expand Down

0 comments on commit 23c0b5d

Please sign in to comment.