aboutsummaryrefslogtreecommitdiff
path: root/plugins/templating
diff options
context:
space:
mode:
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 })
}
}
}