diff options
author | Igor Yakovlev <igor.yakovlev@jetbrains.com> | 2023-01-25 19:03:21 +0100 |
---|---|---|
committer | igoriakovlev <54274820+igoriakovlev@users.noreply.github.com> | 2023-01-26 15:03:04 +0100 |
commit | 7a680acb011e38c66e2039cd5d831a49b16546ad (patch) | |
tree | 1e6c410868c474b58eeb996a67ef3f0a9fbbc237 /plugins/base | |
parent | adfeed1b35b94ced80aba4e13dc926b2c389efb1 (diff) | |
download | dokka-7a680acb011e38c66e2039cd5d831a49b16546ad.tar.gz dokka-7a680acb011e38c66e2039cd5d831a49b16546ad.tar.bz2 dokka-7a680acb011e38c66e2039cd5d831a49b16546ad.zip |
Support kotlin wasm target
Diffstat (limited to 'plugins/base')
3 files changed, 8 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index d949d432..48ebe93f 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -157,6 +157,7 @@ open class HtmlRenderer( "native" -> classes = classes + "native-like" "jvm" -> classes = classes + "jvm-like" "js" -> classes = classes + "js-like" + "wasm" -> classes = classes + "wasm-like" } text(it.name) } @@ -531,6 +532,7 @@ open class HtmlRenderer( "native" -> classes = classes + "native-like" "jvm" -> classes = classes + "jvm-like" "js" -> classes = classes + "js-like" + "wasm" -> classes = classes + "wasm-like" } text(it.name) } diff --git a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt index 22f67445..45a735c6 100644 --- a/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt +++ b/plugins/base/src/main/kotlin/signatures/KotlinSignatureProvider.kt @@ -37,7 +37,7 @@ class KotlinSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLog ExtraModifiers.KotlinOnlyModifiers.External ) private val platformSpecificModifiers: Map<ExtraModifiers, Set<Platform>> = mapOf( - ExtraModifiers.KotlinOnlyModifiers.External to setOf(Platform.js) + ExtraModifiers.KotlinOnlyModifiers.External to setOf(Platform.js, Platform.wasm) ) override fun signature(documentable: Documentable): List<ContentNode> = when (documentable) { diff --git a/plugins/base/src/main/resources/dokka/styles/style.css b/plugins/base/src/main/resources/dokka/styles/style.css index 5242a76d..43c8dde6 100644 --- a/plugins/base/src/main/resources/dokka/styles/style.css +++ b/plugins/base/src/main/resources/dokka/styles/style.css @@ -828,6 +828,11 @@ small { color: white; } +.platform-tag.wasm-like { + background-color: #654FF0; + color: white; +} + .platform-tag.native-like { background-color: #CD74F6; color: white; |