aboutsummaryrefslogtreecommitdiff
path: root/plugins/templating
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-02-05 15:52:05 +0100
committerGitHub <noreply@github.com>2021-02-05 15:52:05 +0100
commita78e47a8d3d0dae7b68b0e414967e20ffb6e9a18 (patch)
tree12bb2bd7659e7ad3ab6fc8cc62acb0a21524d00c /plugins/templating
parent70000c87a37caa2a6b518a555f53c98514434403 (diff)
downloaddokka-a78e47a8d3d0dae7b68b0e414967e20ffb6e9a18.tar.gz
dokka-a78e47a8d3d0dae7b68b0e414967e20ffb6e9a18.tar.bz2
dokka-a78e47a8d3d0dae7b68b0e414967e20ffb6e9a18.zip
Deduplicate resources in multimodule (#1711)
Diffstat (limited to 'plugins/templating')
-rw-r--r--plugins/templating/src/main/kotlin/templates/JsonElementBasedTemplateProcessingStrategy.kt4
-rw-r--r--plugins/templating/src/test/kotlin/templates/AddToSearchCommandResolutionTest.kt6
2 files changed, 0 insertions, 10 deletions
diff --git a/plugins/templating/src/main/kotlin/templates/JsonElementBasedTemplateProcessingStrategy.kt b/plugins/templating/src/main/kotlin/templates/JsonElementBasedTemplateProcessingStrategy.kt
index 5a97d216..dec37799 100644
--- a/plugins/templating/src/main/kotlin/templates/JsonElementBasedTemplateProcessingStrategy.kt
+++ b/plugins/templating/src/main/kotlin/templates/JsonElementBasedTemplateProcessingStrategy.kt
@@ -39,10 +39,6 @@ abstract class BaseJsonNavigationTemplateProcessingStrategy(val context: DokkaCo
})
output.resolve(path).mkdirs()
output.resolve("$path/$navigationFileNameWithoutExtension.json").writeText(content)
-
- fragments.keys.forEach {
- output.resolve(it).resolve("$path/$navigationFileNameWithoutExtension.json").writeText(content)
- }
}
}
diff --git a/plugins/templating/src/test/kotlin/templates/AddToSearchCommandResolutionTest.kt b/plugins/templating/src/test/kotlin/templates/AddToSearchCommandResolutionTest.kt
index 049cef96..bb4fb1c4 100644
--- a/plugins/templating/src/test/kotlin/templates/AddToSearchCommandResolutionTest.kt
+++ b/plugins/templating/src/test/kotlin/templates/AddToSearchCommandResolutionTest.kt
@@ -63,12 +63,6 @@ class AddToSearchCommandResolutionTest : TemplatingAbstractTest() {
val output =
parseJson<List<SearchRecord>>(outputDir.resolve("scripts/${fileName}").readText())
assertEquals(expected, output.sortedBy { it.location })
-
- val outputFromModule1 = parseJson<List<SearchRecord>>(module1Navigation.readText())
- assertEquals(expected, outputFromModule1.sortedBy { it.location })
-
- val outputFromModule2 = parseJson<List<SearchRecord>>(module2Navigation.readText())
- assertEquals(expected, outputFromModule2.sortedBy { it.location })
}
}
}