aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-06-09 16:31:58 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-06-25 14:56:46 +0200
commitcc89f0b74a870303c854fcb892d469d4c8fb17a8 (patch)
treed0affdb4ad029926fedae5d3e0af6fcf150bfde2 /core/src/main/kotlin
parent1183e09a7123c8f9665248235c5e33ba28e92780 (diff)
downloaddokka-cc89f0b74a870303c854fcb892d469d4c8fb17a8.tar.gz
dokka-cc89f0b74a870303c854fcb892d469d4c8fb17a8.tar.bz2
dokka-cc89f0b74a870303c854fcb892d469d4c8fb17a8.zip
Gives text presentation for `SinceKotlin` and hides it from rendering. Hides `Deprecated`. #944
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/model/doc/TagWrapper.kt2
-rw-r--r--core/src/main/kotlin/parsers/MarkdownParser.kt2
-rw-r--r--core/src/main/kotlin/parsers/Parser.kt2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/kotlin/model/doc/TagWrapper.kt b/core/src/main/kotlin/model/doc/TagWrapper.kt
index 6652f5a1..af45e7eb 100644
--- a/core/src/main/kotlin/model/doc/TagWrapper.kt
+++ b/core/src/main/kotlin/model/doc/TagWrapper.kt
@@ -32,4 +32,4 @@ class Sample(root: DocTag, name: String) : NamedTagWrapper(root, name)
class Deprecated(root: DocTag) : TagWrapper(root)
class Property(root: DocTag, name: String) : NamedTagWrapper(root, name)
class Suppress(root: DocTag) : TagWrapper(root)
-class CustomWrapperTag(root: DocTag, name: String) : NamedTagWrapper(root, name) \ No newline at end of file
+class CustomTagWrapper(root: DocTag, name: String) : NamedTagWrapper(root, name) \ No newline at end of file
diff --git a/core/src/main/kotlin/parsers/MarkdownParser.kt b/core/src/main/kotlin/parsers/MarkdownParser.kt
index 308a8fb6..07e1fcc3 100644
--- a/core/src/main/kotlin/parsers/MarkdownParser.kt
+++ b/core/src/main/kotlin/parsers/MarkdownParser.kt
@@ -371,7 +371,7 @@ class MarkdownParser(
DocumentationNode(
(listOf(kDocTag) + getAllKDocTags(findParent(kDocTag))).map {
when (it.knownTag) {
- null -> if (it.name == null) Description(parseStringToDocNode(it.getContent())) else CustomWrapperTag(
+ null -> if (it.name == null) Description(parseStringToDocNode(it.getContent())) else CustomTagWrapper(
parseStringToDocNode(it.getContent()),
it.name!!
)
diff --git a/core/src/main/kotlin/parsers/Parser.kt b/core/src/main/kotlin/parsers/Parser.kt
index 11dcafb0..05adc4d5 100644
--- a/core/src/main/kotlin/parsers/Parser.kt
+++ b/core/src/main/kotlin/parsers/Parser.kt
@@ -27,7 +27,7 @@ abstract class Parser {
"deprecated" -> Deprecated(parseStringToDocNode(it.second))
"sample" -> Sample(parseStringToDocNode(it.second.substringAfter(' ')), it.second.substringBefore(' '))
"suppress" -> Suppress(parseStringToDocNode(it.second))
- else -> CustomWrapperTag(parseStringToDocNode(it.second), it.first)
+ else -> CustomTagWrapper(parseStringToDocNode(it.second), it.first)
}
}
return DocumentationNode(mappedList)