Skip to content

Commit 6b1807e

Browse files
committed
chore(docsify): sync sidebar alias in vercel index
1 parent 3222acb commit 6b1807e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- twikoo:切换页面时清理旧评论容器,避免多评论区叠加
1111
- twikoo:增加路由令牌,防止旧页面异步回流导致重复评论区
1212
- docsify:统一侧边栏到根目录,避免子目录 `_sidebar.md` 404
13+
- docsify:同步 vercel 版本的根目录侧边栏 alias 配置
1314

1415
### 腾讯云 COS CORS 设置要点
1516
- 路径:对象存储 COS → 存储桶 → 安全管理 → 跨域访问 CORS

docs/index_vercelWithTwikoo_20260201.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@
107107
// ,repo: 'https://github.com/SICNU-Application/wiki-SICNU'
108108
// load DIY SideBar
109109
,loadSidebar: true
110+
// 统一使用根目录侧边栏,避免子目录 404
111+
,alias: {
112+
'/.*/_sidebar.md': '/_sidebar.md'
113+
}
110114
//设置侧边栏的目录名作为正文的标题
111115
,autoHeader: true
112116
//侧边栏顶部标题
@@ -193,4 +197,4 @@
193197
<!-- Twikoo评论系统 -->
194198
<script src="https://cdn.staticfile.org/twikoo/1.6.5/twikoo.all.min.js"></script>
195199
</body>
196-
</html>
200+
</html>

0 commit comments

Comments
 (0)