diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-17 10:49:41 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-17 11:52:28 +0200 |
commit | ef1bb10aca292e14d8deb35694243fd84fc75341 (patch) | |
tree | 2aae938883e6c8d1b35948d2da947b0af955bd54 /plugins/base/src/main/kotlin/transformers/pages/comments | |
parent | a2be91ea289ddb1a8634c5fd252243f1b9ab7000 (diff) | |
download | dokka-ef1bb10aca292e14d8deb35694243fd84fc75341.tar.gz dokka-ef1bb10aca292e14d8deb35694243fd84fc75341.tar.bz2 dokka-ef1bb10aca292e14d8deb35694243fd84fc75341.zip |
Rename `ContentSourceSet` to `DisplaySourceSet`
Diffstat (limited to 'plugins/base/src/main/kotlin/transformers/pages/comments')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt b/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt index f5181f4a..0c88b3c6 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt @@ -3,7 +3,7 @@ package org.jetbrains.dokka.base.transformers.pages.comments import org.jetbrains.dokka.DokkaConfiguration.DokkaSourceSet import org.jetbrains.dokka.model.doc.* import org.jetbrains.dokka.model.properties.PropertyContainer -import org.jetbrains.dokka.model.toContentSourceSets +import org.jetbrains.dokka.model.toDisplaySourceSets import org.jetbrains.dokka.pages.* object DocTagToContentConverter : CommentsToContentConverter { @@ -31,7 +31,7 @@ object DocTagToContentConverter : CommentsToContentConverter { buildChildren(docTag), level, dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles ) ) @@ -42,7 +42,7 @@ object DocTagToContentConverter : CommentsToContentConverter { buildChildren(docTag), ordered, dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles, ((PropertyContainer.empty<ContentNode>()) + SimpleAttr("start", start.toString())) ) @@ -50,7 +50,7 @@ object DocTagToContentConverter : CommentsToContentConverter { fun buildNewLine() = listOf( ContentBreakLine( - sourceSets.toContentSourceSets() + sourceSets.toDisplaySourceSets() ) ) @@ -67,7 +67,7 @@ object DocTagToContentConverter : CommentsToContentConverter { is Ul -> buildList(false) is Ol -> buildList(true, docTag.params["start"]?.toInt() ?: 1) is Li -> listOf( - ContentGroup(buildChildren(docTag), dci, sourceSets.toContentSourceSets(), styles, extra) + ContentGroup(buildChildren(docTag), dci, sourceSets.toDisplaySourceSets(), styles, extra) ) is Br -> buildNewLine() is B -> buildChildren(docTag, setOf(TextStyle.Strong)) @@ -76,7 +76,7 @@ object DocTagToContentConverter : CommentsToContentConverter { ContentGroup( buildChildren(docTag.collapseParagraphs()), dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles + setOf(TextStyle.Paragraph), extra ) @@ -86,7 +86,7 @@ object DocTagToContentConverter : CommentsToContentConverter { buildChildren(docTag), docTag.params.getValue("href"), dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles ) ) @@ -98,7 +98,7 @@ object DocTagToContentConverter : CommentsToContentConverter { setOf(docTag.dri), ContentKind.Main ), - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles ) ) @@ -107,7 +107,7 @@ object DocTagToContentConverter : CommentsToContentConverter { buildChildren(docTag), "", dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles ) ) @@ -116,7 +116,7 @@ object DocTagToContentConverter : CommentsToContentConverter { buildChildren(docTag), "", dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles ) ) @@ -125,7 +125,7 @@ object DocTagToContentConverter : CommentsToContentConverter { buildChildren(docTag), "", dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles ) ) @@ -134,7 +134,7 @@ object DocTagToContentConverter : CommentsToContentConverter { address = docTag.params["href"]!!, altText = docTag.params["alt"], dci = dci, - sourceSets = sourceSets.toContentSourceSets(), + sourceSets = sourceSets.toDisplaySourceSets(), style = styles, extra = extra ) @@ -143,7 +143,7 @@ object DocTagToContentConverter : CommentsToContentConverter { ContentText( "", dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), setOf() ) ) @@ -151,7 +151,7 @@ object DocTagToContentConverter : CommentsToContentConverter { ContentText( docTag.body, dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles ) ) @@ -161,7 +161,7 @@ object DocTagToContentConverter : CommentsToContentConverter { buildTableRows(docTag.children.filterIsInstance<Th>(), CommentTable), buildTableRows(docTag.children.filterIsInstance<Tr>(), CommentTable), dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles + CommentTable ) ) @@ -169,10 +169,10 @@ object DocTagToContentConverter : CommentsToContentConverter { is Tr -> listOf( ContentGroup( docTag.children.map { - ContentGroup(buildChildren(it), dci, sourceSets.toContentSourceSets(), styles, extra) + ContentGroup(buildChildren(it), dci, sourceSets.toDisplaySourceSets(), styles, extra) }, dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles ) ) @@ -180,7 +180,7 @@ object DocTagToContentConverter : CommentsToContentConverter { ContentGroup( buildChildren(docTag, newStyles = styles + ContentStyle.InDocumentationAnchor), dci, - sourceSets.toContentSourceSets(), + sourceSets.toDisplaySourceSets(), styles ) ) |