aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-03-11 13:56:21 +0100
committerKamil Doległo <kamilok1965@users.noreply.github.com>2020-03-11 14:36:37 +0100
commit356be7009f857032f87bf0e5943cdef7f1438f65 (patch)
tree3b865af714b103a10a837c86ef7bb3b25071f67a /core
parent5636115aee8d13870f0d3f172667fca1b3f78276 (diff)
downloaddokka-356be7009f857032f87bf0e5943cdef7f1438f65.tar.gz
dokka-356be7009f857032f87bf0e5943cdef7f1438f65.tar.bz2
dokka-356be7009f857032f87bf0e5943cdef7f1438f65.zip
Refactor brief documentation, remove `Parameters` block from functions' pages
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/model/Documentable.kt11
-rw-r--r--core/src/main/kotlin/pages/ContentNodes.kt2
-rw-r--r--core/src/main/resources/dokka/styles/style.css7
3 files changed, 8 insertions, 12 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt
index 94bd624a..176647fa 100644
--- a/core/src/main/kotlin/model/Documentable.kt
+++ b/core/src/main/kotlin/model/Documentable.kt
@@ -23,17 +23,6 @@ abstract class Documentable {
other is Documentable && this.dri == other.dri // TODO: https://github.com/Kotlin/dokka/pull/667#discussion_r382555806
override fun hashCode() = dri.hashCode()
-
- val briefDocTagString: String by lazy {
- // TODO > utils
- documentation.values
- .firstOrNull()
- ?.children
- ?.firstOrNull()
- ?.root
- ?.docTagSummary()
- ?.shorten(40) ?: ""
- }
}
data class PlatformDependent<out T>(
diff --git a/core/src/main/kotlin/pages/ContentNodes.kt b/core/src/main/kotlin/pages/ContentNodes.kt
index 6a8ad3b3..414fac4a 100644
--- a/core/src/main/kotlin/pages/ContentNodes.kt
+++ b/core/src/main/kotlin/pages/ContentNodes.kt
@@ -167,7 +167,7 @@ interface Style
interface Kind
enum class ContentKind : Kind {
- Comment, Constructors, Functions, Parameters, Properties, Classlikes, Packages, Symbol, Sample, Main
+ Comment, Constructors, Functions, Parameters, Properties, Classlikes, Packages, Symbol, Sample, Main, BriefComment
}
enum class TextStyle : Style {
diff --git a/core/src/main/resources/dokka/styles/style.css b/core/src/main/resources/dokka/styles/style.css
index 9aa2eb10..5284364b 100644
--- a/core/src/main/resources/dokka/styles/style.css
+++ b/core/src/main/resources/dokka/styles/style.css
@@ -101,6 +101,13 @@ td:first-child {
font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
}
+.brief {
+ width: 40vw;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
h1, h2, h3, h4, h5, h6 {
color:#222;
}