Skip to content

Commit 062a96d

Browse files
DanktuaryQingWei-Li
authored andcommitted
Move script tags above closing body tag (#24)
1 parent d03bbd4 commit 062a96d

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

docs/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
</head>
1111
<body>
1212
<div id="app"></div>
13+
<script>
14+
window.$docsify = {
15+
name: 'docsify-cli',
16+
basePath: '/docsify-cli/',
17+
repo: 'QingWei-Li/docsify-cli'
18+
}
19+
</script>
20+
<script src="//unpkg.com/docsify@next/lib/docsify.min.js"></script>
1321
</body>
14-
<script>
15-
window.$docsify = {
16-
name: 'docsify-cli',
17-
basePath: '/docsify-cli/',
18-
repo: 'QingWei-Li/docsify-cli'
19-
}
20-
</script>
21-
<script src="//unpkg.com/docsify@next/lib/docsify.min.js"></script>
2222
</html>

lib/template/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
</head>
1111
<body>
1212
<div id="app"></div>
13+
<script>
14+
window.$docsify = {
15+
name: '',
16+
repo: ''
17+
}
18+
</script>
19+
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
1320
</body>
14-
<script>
15-
window.$docsify = {
16-
name: '',
17-
repo: ''
18-
}
19-
</script>
20-
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
2121
</html>

lib/template/index.local.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
</head>
1111
<body>
1212
<div id="app"></div>
13+
<script>
14+
window.$docsify = {
15+
name: '',
16+
repo: ''
17+
}
18+
</script>
19+
<script src="vendor/docsify.js"></script>
1320
</body>
14-
<script>
15-
window.$docsify = {
16-
name: '',
17-
repo: ''
18-
}
19-
</script>
20-
<script src="vendor/docsify.js"></script>
2121
</html>

0 commit comments

Comments
 (0)