Skip to content

Commit 8a0370a

Browse files
authored
Update index.html
1 parent 1f3242b commit 8a0370a

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

index.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,30 @@
88
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
99
</head>
1010
<body>
11-
<div id="app">正在加载 Docsify...</div>
11+
<div id="docsify-app-container">页面正在努力加载中...</div> <!-- 修改了ID并添加了初始文本 -->
1212

1313
<script>
14-
console.log('[MINIMAL TEST] window.$docsify 配置脚本块开始执行。');
15-
16-
// 确保 Service Worker 注册代码确实被注释或删除了
17-
// if (typeof navigator.serviceWorker !== "undefined") {
18-
// navigator.serviceWorker.register("sw.js");
19-
// }
14+
console.log('[MINIMAL TEST A] window.$docsify 配置脚本块开始执行。');
2015

2116
window.$docsify = {
22-
name: '最小化测试文档',
17+
el: '#docsify-app-container', // 显式指定挂载元素
18+
name: '最小化测试文档 A',
19+
// homepage: 'README.md', // 可以显式指定首页文件,如果你的文件不叫 README.md
2320
doneEach: function(html, next) {
24-
console.log('[MINIMAL TEST] doneEach 钩子成功触发!');
21+
console.log('[MINIMAL TEST A] doneEach 钩子成功触发! HTML content received.');
22+
// 为了确认是否真的有内容被处理,可以打印一下html的开头部分
23+
// console.log('[MINIMAL TEST A] HTML snippet:', String(html).substring(0, 100));
2524
next(html);
25+
},
26+
// 新增一个 ready 钩子,看它是否会触发
27+
ready: function() {
28+
console.log('[MINIMAL TEST A] Docsify "ready" 钩子触发!');
2629
}
2730
};
2831

29-
console.log('[MINIMAL TEST] window.$docsify 对象已定义完毕:', window.$docsify);
32+
console.log('[MINIMAL TEST A] window.$docsify 对象已定义完毕:', window.$docsify);
3033
</script>
3134

3235
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
33-
34-
<!-- 确认这里没有其他 script 标签 -->
3536
</body>
3637
</html>

0 commit comments

Comments
 (0)