Skip to content

Commit 1f3242b

Browse files
authored
Update index.html
1 parent a4fa474 commit 1f3242b

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

index.html

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,24 @@
1313
<script>
1414
console.log('[MINIMAL TEST] window.$docsify 配置脚本块开始执行。');
1515

16-
// 暂时注释掉 Service Worker,以排除其潜在干扰
16+
// 确保 Service Worker 注册代码确实被注释或删除了
1717
// if (typeof navigator.serviceWorker !== "undefined") {
1818
// navigator.serviceWorker.register("sw.js");
1919
// }
2020

2121
window.$docsify = {
2222
name: '最小化测试文档',
23-
// el: '#app', // Docsify 自动查找 #app
24-
25-
// 唯一保留的钩子:doneEach
2623
doneEach: function(html, next) {
2724
console.log('[MINIMAL TEST] doneEach 钩子成功触发!');
28-
// 在此阶段,我们甚至不尝试操作 DOM,只确认钩子是否被调用
2925
next(html);
3026
}
31-
// 其他所有配置项(repo, maxLevel, search, beian, count, plugins等)全部移除
3227
};
3328

3429
console.log('[MINIMAL TEST] window.$docsify 对象已定义完毕:', window.$docsify);
3530
</script>
3631

37-
<!-- Docsify 核心脚本,必须在 window.$docsify 定义之后加载 -->
3832
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
3933

40-
<!-- 确保所有其他插件脚本都已注释掉或移除,包括 emoji, search, copy-code, zoom-image, count, beian, edit-on-github 等 -->
41-
<!-- 例如: <script src="//unpkg.com/docsify/lib/plugins/emoji.js"></script> -->
42-
34+
<!-- 确认这里没有其他 script 标签 -->
4335
</body>
4436
</html>

0 commit comments

Comments
 (0)