aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorvmishenev <vad-mishenev@yandex.ru>2021-11-29 04:11:31 +0300
committerVadim Mishenev <vad-mishenev@yandex.ru>2021-11-29 14:29:27 +0300
commitf144d055403d3101170b3fe075915205762293c4 (patch)
tree887567584ae555c8678082dc7b1f22e053dee7e2 /plugins/base/src/main
parente24ef5d0b4915505eaa3b06999ab196eac463ea7 (diff)
downloaddokka-f144d055403d3101170b3fe075915205762293c4.tar.gz
dokka-f144d055403d3101170b3fe075915205762293c4.tar.bz2
dokka-f144d055403d3101170b3fe075915205762293c4.zip
Remove extra main.js in html
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
index c5b0e511..b61d513a 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -787,7 +787,10 @@ open class HtmlRenderer(
type = ScriptType.textJavaScript,
src = "###$it"
) {
- async = true
+ if (it == "scripts/main.js")
+ defer = true
+ else
+ async = true
}
}
it.isImage() -> if (it.isAbsolute) link(href = it)
@@ -832,9 +835,6 @@ open class HtmlRenderer(
}
div {
id = "main"
- templateCommand(PathToRootSubstitutionCommand("###", default = pathToRoot)) {
- script(type = ScriptType.textJavaScript, src = "###scripts/main.js") {}
- }
content()
div(classes = "footer") {
span("go-to-top-icon") {