We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
./
1 parent 6068774 commit 97f47cfCopy full SHA for 97f47cf
src/Publisher/Builder/template/layout.html
@@ -41,5 +41,6 @@
41
<script src="script/inherited-summary.js"></script>
42
<script src="script/test-summary.js"></script>
43
<script src="script/inner-link.js"></script>
44
+<script src="script/patch-for-local.js"></script>
45
</body>
46
</html>
src/Publisher/Builder/template/script/patch-for-local.js
@@ -0,0 +1,8 @@
1
+(function(){
2
+ if (location.protocol === 'file:') {
3
+ var elms = document.querySelectorAll('a[href="./"]');
4
+ for (var i = 0; i < elms.length; i++) {
5
+ elms[i].href = './index.html';
6
+ }
7
8
+})();
0 commit comments