diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-10-03 04:18:03 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-10-03 04:18:03 +0300 |
commit | aee7a8e76f2d593a6ba73db1f475acca68b7d693 (patch) | |
tree | 89ef59be653bd5ad128700f6a6d7ec4a6352bfb3 /core | |
parent | be3e435500246b971ac12ffccad9d11417f4717c (diff) | |
download | dokka-aee7a8e76f2d593a6ba73db1f475acca68b7d693.tar.gz dokka-aee7a8e76f2d593a6ba73db1f475acca68b7d693.tar.bz2 dokka-aee7a8e76f2d593a6ba73db1f475acca68b7d693.zip |
Don't show platforms on package and module pages
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/Formats/StructuredFormatService.kt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/src/main/kotlin/Formats/StructuredFormatService.kt b/core/src/main/kotlin/Formats/StructuredFormatService.kt index 67a2f293..e12a7923 100644 --- a/core/src/main/kotlin/Formats/StructuredFormatService.kt +++ b/core/src/main/kotlin/Formats/StructuredFormatService.kt @@ -344,7 +344,6 @@ abstract class StructuredOutputBuilder(val to: StringBuilder, val packageName = if (singleNode.name.isEmpty()) "<root>" else singleNode.name appendHeader(2) { appendText("Package $packageName") } } - singleNode.appendPlatforms() appendContent(singleNode.content) } else { val breakdownByName = nodes.groupBy { node -> node.name } @@ -509,18 +508,7 @@ abstract class StructuredOutputBuilder(val to: StringBuilder, } } - private fun DocumentationNode.appendPlatforms() { - val platforms = actualPlatforms - if (platforms.isEmpty()) return - appendParagraph { - appendStrong { to.append("WTF: Platform and version requirements:") } - to.append(" " + platforms.joinToString()) - } - } - - val DocumentationNode.actualPlatforms: Collection<String> - get() = effectivePlatformAndVersion(listOf(this)) // protected fun platformsOfItems(items: List<DocumentationNode>): Set<String> { |