diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-02-04 15:47:29 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-02-11 10:15:32 +0100 |
commit | 6bdb6102ace122fd2a9ee8743866033ac9c94777 (patch) | |
tree | 3b2225df283c7a6075e5e682a43842ba82cabbae /core/src/main | |
parent | 1882138d0558d0465c97f34ac86a7b5102de0191 (diff) | |
download | dokka-6bdb6102ace122fd2a9ee8743866033ac9c94777.tar.gz dokka-6bdb6102ace122fd2a9ee8743866033ac9c94777.tar.bz2 dokka-6bdb6102ace122fd2a9ee8743866033ac9c94777.zip |
Fixes bugs with navbar generating
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/kotlin/renderers/html/HtmlRenderer.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/renderers/html/HtmlRenderer.kt b/core/src/main/kotlin/renderers/html/HtmlRenderer.kt index 47f5d066..376ce5c8 100644 --- a/core/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/core/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -174,7 +174,7 @@ open class HtmlRenderer( filter { it.substringBefore('?').substringAfterLast('.') == "css" } .forEach { link(rel = LinkRel.stylesheet, href = page.root(it)) } filter { it.substringBefore('?').substringAfterLast('.') == "js" } - .forEach { script(type = ScriptType.textJavaScript, src = it) { async = true } } + .forEach { script(type = ScriptType.textJavaScript, src = page.root(it)) { async = true } } } script { unsafe { +"""var pathToRoot = "${locationProvider.resolveRoot(page)}";""" } } } |