diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-13 09:59:39 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-17 11:52:28 +0200 |
commit | f6ac2b0f0a0183171aa2f6806ec67d8d21692a36 (patch) | |
tree | a912d7ba4d7d368b9a3683a6cf290ca135ee231a /plugins/base/src/main/kotlin/translators | |
parent | 86fcfb73d2d5124ae7748a80db29bdbb68607be4 (diff) | |
download | dokka-f6ac2b0f0a0183171aa2f6806ec67d8d21692a36.tar.gz dokka-f6ac2b0f0a0183171aa2f6806ec67d8d21692a36.tar.bz2 dokka-f6ac2b0f0a0183171aa2f6806ec67d8d21692a36.zip |
Implement `ContentSourceSet`
Diffstat (limited to 'plugins/base/src/main/kotlin/translators')
-rw-r--r-- | plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt | 2 | ||||
-rw-r--r-- | plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt index 02f4b54e..04b29990 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt @@ -159,7 +159,7 @@ open class DefaultPageCreator( } }, DCI(setOf(dri), ContentKind.Inheritors), - sourceSets.toSet(), + sourceSets.toContentSourceSets(), style = emptySet(), extra = mainExtra + SimpleAttr.header("Inheritors") ) diff --git a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt index b7927076..a556a96e 100644 --- a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt +++ b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt @@ -73,7 +73,7 @@ open class PageContentBuilder( ) = ContentGroup( contents.toList(), DCI(mainDRI, kind), - sourceSets, + sourceSets.toContentSourceSets(), styles, extra ) @@ -88,10 +88,10 @@ open class PageContentBuilder( private val defaultHeaders get() = listOf( - contentFor(mainDRI, mainSourcesetData){ + contentFor(mainDRI, mainSourcesetData) { text("Name") }, - contentFor(mainDRI, mainSourcesetData){ + contentFor(mainDRI, mainSourcesetData) { text("Summary") } ) @@ -153,7 +153,7 @@ open class PageContentBuilder( defaultHeaders, operation(), DCI(mainDRI, kind), - sourceSets, styles, extra + sourceSets.toContentSourceSets(), styles, extra ) } @@ -188,7 +188,7 @@ open class PageContentBuilder( } }, DCI(mainDRI, kind), - sourceSets, styles, extra + sourceSets.toContentSourceSets(), styles, extra ) } } @@ -234,7 +234,7 @@ open class PageContentBuilder( listOf(createText(text, kind, sourceSets, styles, extra)), address, DCI(mainDRI, kind), - sourceSets + sourceSets.toContentSourceSets() ) fun link( @@ -250,7 +250,7 @@ open class PageContentBuilder( address = address, extra = PropertyContainer.empty(), dci = DCI(mainDRI, kind), - sourceSets = sourceSets, + sourceSets = sourceSets.toContentSourceSets(), style = emptySet() ) } @@ -267,7 +267,7 @@ open class PageContentBuilder( contentFor(mainDRI, sourceSets, kind, styles, extra, block).children, address, DCI(mainDRI, kind), - sourceSets + sourceSets.toContentSourceSets() ) } @@ -283,7 +283,7 @@ open class PageContentBuilder( DCI(mainDRI, kind), sourceSets ) - contents += ContentGroup(content, DCI(mainDRI, kind), sourceSets, styles, extra) + contents += ContentGroup(content, DCI(mainDRI, kind), sourceSets.toContentSourceSets(), styles, extra) } fun group( @@ -331,7 +331,7 @@ open class PageContentBuilder( ) { contents += PlatformHintedContent( buildGroup(dri, sourceSets, kind, styles, extra, block), - sourceSets + sourceSets.toContentSourceSets() ) } @@ -345,7 +345,7 @@ open class PageContentBuilder( ) { contents += PlatformHintedContent( buildGroup(setOf(dri), sourcesetData, kind, styles, extra, block), - sourcesetData + sourcesetData.toContentSourceSets() ) } @@ -356,7 +356,7 @@ open class PageContentBuilder( styles: Set<Style>, extra: PropertyContainer<ContentNode> ) = - ContentText(text, DCI(mainDRI, kind), sourceSets, styles, extra) + ContentText(text, DCI(mainDRI, kind), sourceSets.toContentSourceSets(), styles, extra) fun <T> sourceSetDependentText( value: SourceSetDependent<T>, @@ -466,9 +466,9 @@ open class PageContentBuilder( divergent ?: throw IllegalStateException("Divergent block needs divergent part"), after, DCI(mainDRI, kind), - sourceSets, + sourceSets.toContentSourceSets(), styles, extra ) } -}
\ No newline at end of file +} |