diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-02-04 14:21:04 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-02-04 14:22:48 +0100 |
commit | 0508be47cbbc5a160217aa35233398044d8cdaf8 (patch) | |
tree | 81211f576aac7450e1cf63a30d4120e1dc1017a9 /core/src | |
parent | 7e52fb01b79cb6917b0d1ace31dff9c6a26e013f (diff) | |
download | dokka-0508be47cbbc5a160217aa35233398044d8cdaf8.tar.gz dokka-0508be47cbbc5a160217aa35233398044d8cdaf8.tar.bz2 dokka-0508be47cbbc5a160217aa35233398044d8cdaf8.zip |
Fixes JS script resources bug
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/renderers/HtmlRenderer.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/renderers/HtmlRenderer.kt b/core/src/main/kotlin/renderers/HtmlRenderer.kt index 901c25f5..e8c3a486 100644 --- a/core/src/main/kotlin/renderers/HtmlRenderer.kt +++ b/core/src/main/kotlin/renderers/HtmlRenderer.kt @@ -174,9 +174,9 @@ open class HtmlRenderer( head { title(page.name) with(resources) { - filter { it.substringAfterLast('.') == "css" } + filter { it.substringBefore('?').substringAfterLast('.') == "css" } .forEach { link(rel = LinkRel.stylesheet, href = page.root(it)) } - filter { it.substringAfterLast('.') == "js" } + filter { it.substringBefore('?').substringAfterLast('.') == "js" } .forEach { script(type = ScriptType.textJavaScript, src = it) { async = true } } } } |