blob: cfd7f76934a4b1494bacde0f8c1d09bcb7cac409 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package org.jetbrains.dokka.pages
import org.jetbrains.dokka.model.properties.ExtraProperty
class SimpleAttr(val extraKey: String, val extraValue: String) : ExtraProperty<ContentNode> {
data class SimpleAttrKey(val key: String) : ExtraProperty.Key<ContentNode, SimpleAttr>
override val key: ExtraProperty.Key<ContentNode, SimpleAttr> = SimpleAttrKey(extraKey)
companion object {
fun header(value: String) = SimpleAttr("data-togglable", value)
}
}
object HtmlContent : ExtraProperty<ContentNode>, ExtraProperty.Key<ContentNode, HtmlContent> {
override val key: ExtraProperty.Key<ContentNode, *> = this
}
|