aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-07-02 17:32:21 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-08 11:48:29 +0200
commit8150d8478018ab36ae2bab0447bbd3322a895e36 (patch)
tree5d8eb1a5c99e3f6a0530c823d5b0453b855efde0 /plugins/base/src/main/kotlin
parentf80d5938ccafcf5bd41d73f98bebe2d9699faa95 (diff)
downloaddokka-8150d8478018ab36ae2bab0447bbd3322a895e36.tar.gz
dokka-8150d8478018ab36ae2bab0447bbd3322a895e36.tar.bz2
dokka-8150d8478018ab36ae2bab0447bbd3322a895e36.zip
Add GFM tests
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt2
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt5
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt b/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt
index 42422934..9a11c126 100644
--- a/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt
+++ b/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt
@@ -62,7 +62,7 @@ class SourceLinksTransformer(val context: DokkaContext, val builder: PageContent
emptyList(),
sources.map {
buildGroup(node.dri, setOf(it.first), kind = ContentKind.Source) {
- +link("(source)", it.second)
+ link("(source)", it.second)
}
},
DCI(node.dri, ContentKind.Source),
diff --git a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
index 58b384e2..94aa2c5a 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
@@ -244,8 +244,8 @@ open class PageContentBuilder(
sourceSets: Set<DokkaSourceSet> = mainSourcesetData,
styles: Set<Style> = mainStyles,
extra: PropertyContainer<ContentNode> = mainExtra
- ) =
- ContentResolvedLink(
+ ) {
+ contents += ContentResolvedLink(
children = listOf(createText(text, kind, sourceSets, styles, extra)),
address = address,
extra = PropertyContainer.empty(),
@@ -253,6 +253,7 @@ open class PageContentBuilder(
sourceSets = sourceSets,
style = emptySet()
)
+ }
fun link(
address: DRI,