diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-07-09 10:45:06 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-16 13:17:39 +0200 |
commit | 04cf1cdd3a909fa62e5ffda5b7d04695c749177e (patch) | |
tree | 5c38372dd70f5528bf55c084a1893a7af8e41359 /plugins/base | |
parent | 42c6bcdbd564628907491289555c6d6713294fef (diff) | |
download | dokka-04cf1cdd3a909fa62e5ffda5b7d04695c749177e.tar.gz dokka-04cf1cdd3a909fa62e5ffda5b7d04695c749177e.tar.bz2 dokka-04cf1cdd3a909fa62e5ffda5b7d04695c749177e.zip |
Implement javadoc search
Diffstat (limited to 'plugins/base')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt | 8 | ||||
-rw-r--r-- | plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt | 1 |
2 files changed, 9 insertions, 0 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 19817992..0f953e0f 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/comments/DocTagToContentConverter.kt @@ -164,6 +164,14 @@ object DocTagToContentConverter : CommentsToContentConverter { styles ) ) + is Index -> listOf( + ContentGroup( + buildChildren(docTag, newStyles = styles + ContentStyle.InDocumentationAnchor), + dci, + sourceSets, + styles + ) + ) else -> buildChildren(docTag) } } diff --git a/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt b/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt index 2e921e83..81955fde 100644 --- a/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt +++ b/plugins/base/src/main/kotlin/translators/psi/JavadocParser.kt @@ -198,6 +198,7 @@ class JavadocParser( "code", "literal" -> { CodeInline(listOf(Text(tag.text))) } + "index" -> Index(tag.children.filterIsInstance<PsiDocTagValue>().map { Text(it.text) }) else -> Text(tag.text) } |