diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-13 15:56:14 +0100 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-11-13 15:56:14 +0100 |
commit | 3873d13730d3c07d73ced9b02a0ef51f2cc510b1 (patch) | |
tree | 2a04136fe0487c8bbb0e2e960778599e228af00a | |
parent | 86e5f8e35a1a6a834dda723421af048be7b7ca1b (diff) | |
download | dokka-3873d13730d3c07d73ced9b02a0ef51f2cc510b1.tar.gz dokka-3873d13730d3c07d73ced9b02a0ef51f2cc510b1.tar.bz2 dokka-3873d13730d3c07d73ced9b02a0ef51f2cc510b1.zip |
Rework ContentNodes some more
-rw-r--r-- | core/src/main/kotlin/pages/ContentNodes.kt | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt index b5dc027f..a94a42c5 100644 --- a/core/src/main/kotlin/pages/ContentNodes.kt +++ b/core/src/main/kotlin/pages/ContentNodes.kt @@ -68,6 +68,7 @@ data class ContentResolvedLink( /** All links that do not need to be resolved */ data class ContentEmbeddedResource( val address: String, + val altText: String?, override val dci: DCI, override val platforms: Set<PlatformData>, override val style: Set<Style> = emptySet(), @@ -81,6 +82,16 @@ interface ContentComposite : ContentNode { val children: List<ContentNode> } +/** Tables */ +data class ContentTable( + val header: List<ContentGroup>, + override val children: List<ContentGroup>, + override val dci: DCI, + override val platforms: Set<PlatformData>, + override val style: Set<Style>, + override val extras: Set<Extra> +) : ContentComposite + /** Lists */ data class ContentList( override val children: List<ContentNode>, @@ -110,11 +121,13 @@ enum class ContentKind : Kind { } enum class TextStyle : Style { - Bold, Italic, Strong, Strikethrough, TableHeader + Bold, Italic, Strong, Strikethrough } -enum class RenderStyle : Style { - Block, Inline, Table, Paragraph +interface HTMLMetadata: Extra { + val key: String + val value: String } -//data class HTMLMetadata(val key: String, val value: String): Extra
\ No newline at end of file +data class HTMLSimpleAttr(override val key: String, override val value: String): HTMLMetadata +data class HTMLTableMetadata(val item: String, override val key: String, override val value: String): HTMLMetadata
\ No newline at end of file |