diff options
author | vmishenev <vad-mishenev@yandex.ru> | 2021-11-29 04:11:31 +0300 |
---|---|---|
committer | Vadim Mishenev <vad-mishenev@yandex.ru> | 2021-11-29 14:29:27 +0300 |
commit | f144d055403d3101170b3fe075915205762293c4 (patch) | |
tree | 887567584ae555c8678082dc7b1f22e053dee7e2 /plugins/base/src | |
parent | e24ef5d0b4915505eaa3b06999ab196eac463ea7 (diff) | |
download | dokka-f144d055403d3101170b3fe075915205762293c4.tar.gz dokka-f144d055403d3101170b3fe075915205762293c4.tar.bz2 dokka-f144d055403d3101170b3fe075915205762293c4.zip |
Remove extra main.js in html
Diffstat (limited to 'plugins/base/src')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 8 |
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") { |