aboutsummaryrefslogtreecommitdiff
path: root/plugins/gfm/src/main/kotlin/GfmPlugin.kt
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-06-30 23:06:03 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-06 17:59:15 +0200
commitb0e8622f374f6499058b0f083367b4a54512b702 (patch)
tree0fa641dc26bf1e7ed6497ee2340999e8ecc505ad /plugins/gfm/src/main/kotlin/GfmPlugin.kt
parentb0b418334535adc60ee80c3df1b2293dfcaad071 (diff)
downloaddokka-b0e8622f374f6499058b0f083367b4a54512b702.tar.gz
dokka-b0e8622f374f6499058b0f083367b4a54512b702.tar.bz2
dokka-b0e8622f374f6499058b0f083367b4a54512b702.zip
Enforce workspace unique SourceSetID
Diffstat (limited to 'plugins/gfm/src/main/kotlin/GfmPlugin.kt')
-rw-r--r--plugins/gfm/src/main/kotlin/GfmPlugin.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gfm/src/main/kotlin/GfmPlugin.kt b/plugins/gfm/src/main/kotlin/GfmPlugin.kt
index b955d403..287ef74f 100644
--- a/plugins/gfm/src/main/kotlin/GfmPlugin.kt
+++ b/plugins/gfm/src/main/kotlin/GfmPlugin.kt
@@ -140,7 +140,7 @@ open class CommonmarkRenderer(
platforms.joinToString(
prefix = " [",
postfix = "] $text "
- ) { "${it.moduleName}/${it.sourceSetID}" })
+ ) { "${it.moduleDisplayName}/${it.sourceSetID}" })
buildNewLine()
}
}
@@ -157,7 +157,7 @@ open class CommonmarkRenderer(
) {
if(node.dci.kind == ContentKind.Sample || node.dci.kind == ContentKind.Parameters){
node.sourceSets.forEach {sourcesetData ->
- append("${sourcesetData.moduleName}/${sourcesetData.sourceSetID}")
+ append("${sourcesetData.moduleDisplayName}/${sourcesetData.sourceSetID}")
buildNewLine()
buildTable(node.copy(children = node.children.filter { it.sourceSets.contains(sourcesetData) }, dci = node.dci.copy(kind = ContentKind.Main)), pageContext, sourceSetRestriction)
buildNewLine()
@@ -286,4 +286,4 @@ class MarkdownLocationProvider(
dokkaContext
) {
override val extension = ".md"
-} \ No newline at end of file
+}