diff options
author | vmishenev <vad-mishenev@yandex.ru> | 2021-09-25 02:15:22 +0300 |
---|---|---|
committer | vmishenev <vad-mishenev@yandex.ru> | 2021-10-15 00:24:39 +0300 |
commit | b2663070490d6ad31a0e7ba7ae80d16dbde43aef (patch) | |
tree | cce72017295c1cffc97af090541131821550b681 /plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt | |
parent | 7e3f6b256585a8592e32ab9d8e01161f32e33aa6 (diff) | |
download | dokka-b2663070490d6ad31a0e7ba7ae80d16dbde43aef.tar.gz dokka-b2663070490d6ad31a0e7ba7ae80d16dbde43aef.tar.bz2 dokka-b2663070490d6ad31a0e7ba7ae80d16dbde43aef.zip |
Fix adding new custom stylesheets in submodules (#2168)
Diffstat (limited to 'plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt b/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt index 665ae730..43526dc3 100644 --- a/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt +++ b/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt @@ -76,6 +76,8 @@ class CustomResourceInstaller(val dokkaContext: DokkaContext) : PageTransformer val customResourcesPaths = (customAssets + customStylesheets).map { it.name }.toSet() val withEmbeddedResources = input.transformContentPagesTree { it.modified(embeddedResources = it.embeddedResources + customResourcesPaths) } + if(dokkaContext.configuration.delayTemplateSubstitution) + return withEmbeddedResources val (currentResources, otherPages) = withEmbeddedResources.children.partition { it is RendererSpecificResourcePage } return input.modified(children = otherPages + currentResources.filterNot { it.name in customResourcesPaths } + customAssets + customStylesheets) } |