aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-03-24 16:02:36 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-04-08 13:21:22 +0200
commitd207b1d1b428f9accc19a5db27ad00a7efff0e19 (patch)
tree3ee76d4578ecde27bc3b8651d39a05bd2d0f0caf /core/src
parent6e3727211d04c2f946e4a354c4507b29e10a75f7 (diff)
downloaddokka-d207b1d1b428f9accc19a5db27ad00a7efff0e19.tar.gz
dokka-d207b1d1b428f9accc19a5db27ad00a7efff0e19.tar.bz2
dokka-d207b1d1b428f9accc19a5db27ad00a7efff0e19.zip
Adds source links to provide linking to source code on remote repositories
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/pages/ContentNodes.kt13
1 files changed, 8 insertions, 5 deletions
diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt
index 61bc3dfc..cbb5b656 100644
--- a/core/src/main/kotlin/pages/ContentNodes.kt
+++ b/core/src/main/kotlin/pages/ContentNodes.kt
@@ -30,7 +30,7 @@ data class ContentBreakLine(
override val dci: DCI = DCI(emptySet(), ContentKind.Empty),
override val style: Set<Style> = emptySet(),
override val extra: PropertyContainer<ContentNode> = PropertyContainer.empty()
-): ContentNode {
+) : ContentNode {
override fun withNewExtras(newExtras: PropertyContainer<ContentNode>): ContentNode = copy(extra = newExtras)
}
@@ -163,17 +163,20 @@ data class PlatformHintedContent(
/** All extras */
interface Extra
+
interface Style
interface Kind
enum class ContentKind : Kind {
+
Comment, Constructors, Functions, Parameters, Properties, Classlikes, Packages, Symbol, Sample, Main, BriefComment,
- Empty, TypeAliases;
+ Empty, Source, TypeAliases;
- companion object{
- private val platformTagged = setOf(Constructors, Functions, Properties, Classlikes, Packages, TypeAliases)
+ companion object {
+ private val platformTagged =
+ setOf(Constructors, Functions, Properties, Classlikes, Packages, Source, TypeAliases)
- fun shouldBePlatformTagged(kind: Kind) : Boolean = kind in platformTagged
+ fun shouldBePlatformTagged(kind: Kind): Boolean = kind in platformTagged
}
}