Skip to content

Commit

Permalink
Fix spelling error 'depenent' (#2594)
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Dombek <Felix.Dombek@tomtom.com>
  • Loading branch information
FelixDombek and FelixDombek-TomTom committed Aug 3, 2022
1 parent 256740a commit 8356b56
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Expand Up @@ -248,7 +248,7 @@ open class HtmlRenderer(
}
}.stripDiv()
sourceSet to createHTML(prettyPrint = false).prepareForTemplates()
.div(classes = "content sourceset-depenent-content") {
.div(classes = "content sourceset-dependent-content") {
if (counter++ == 0) attributes["data-active"] = ""
attributes["data-togglable"] = sourceSet.sourceSetIDs.merged.toString()
unsafe {
Expand Down
10 changes: 5 additions & 5 deletions plugins/base/src/main/resources/dokka/styles/style.css
Expand Up @@ -204,18 +204,18 @@ html ::-webkit-scrollbar-thumb {
flex-direction: column;
}

.cover .platform-hinted.with-platform-tabs .sourceset-depenent-content > .block ~ .symbol {
.cover .platform-hinted.with-platform-tabs .sourceset-dependent-content > .block ~ .symbol {
padding-top: 16px;
padding-left: 0;
}

.cover .sourceset-depenent-content > .block {
.cover .sourceset-dependent-content > .block {
padding: 16px 0;
font-size: 18px;
line-height: 28px;
}

.cover .platform-hinted.with-platform-tabs .sourceset-depenent-content > .block {
.cover .platform-hinted.with-platform-tabs .sourceset-dependent-content > .block {
padding: 0;
font-size: var(--default-font-size);
}
Expand Down Expand Up @@ -977,8 +977,8 @@ td.content {
padding-bottom: 8px;
}

.table-row .with-platform-tabs .sourceset-depenent-content .brief,
.table-row .with-platform-tabs .sourceset-depenent-content .inline-comment {
.table-row .with-platform-tabs .sourceset-dependent-content .brief,
.table-row .with-platform-tabs .sourceset-dependent-content .inline-comment {
padding: 8px;
}

Expand Down
Expand Up @@ -50,8 +50,8 @@ abstract class AbstractRenderingTest : BaseAbstractTest() {
fun TestOutputWriterPlugin.renderedDivergentContent(path: String): Elements =
renderedContent(path).select("div.divergent-group")

fun TestOutputWriterPlugin.renderedSourceDepenentContent(path: String): Elements =
renderedContent(path).select("div.sourceset-depenent-content")
fun TestOutputWriterPlugin.renderedSourceDependentContent(path: String): Elements =
renderedContent(path).select("div.sourceset-dependent-content")

val Element.brief: String
get() = children().select("p").text()
Expand Down
Expand Up @@ -15,7 +15,7 @@ class DivergentSignatureTest : AbstractRenderingTest() {
pluginOverrides = listOf(writerPlugin)
) {
renderingStage = { _, _ ->
val content = writerPlugin.renderedSourceDepenentContent("example/example/-clock/get-time.html")
val content = writerPlugin.renderedSourceDependentContent("example/example/-clock/get-time.html")

assert(content.count() == 3)
val sourceSets = listOf("example/common", "example/js", "example/jvm")
Expand All @@ -36,7 +36,7 @@ class DivergentSignatureTest : AbstractRenderingTest() {
pluginOverrides = listOf(writerPlugin)
) {
renderingStage = { _, _ ->
val content = writerPlugin.renderedSourceDepenentContent("example/example/-clock/get-times-in-millis.html")
val content = writerPlugin.renderedSourceDependentContent("example/example/-clock/get-times-in-millis.html")

assert(content.count() == 3)
assert(content.select("[data-togglable=example/common]").single().brief == "Time in minis")
Expand All @@ -56,7 +56,7 @@ class DivergentSignatureTest : AbstractRenderingTest() {
pluginOverrides = listOf(writerPlugin)
) {
renderingStage = { _, _ ->
val content = writerPlugin.renderedSourceDepenentContent("example/example/-clock/get-year.html")
val content = writerPlugin.renderedSourceDependentContent("example/example/-clock/get-year.html")
assert(content.count() == 3)
assert(content.select("[data-togglable=example/jvm]").single().brief == "JVM custom kdoc")
assert(content.select("[data-togglable=example/js]").single().brief == "JS custom kdoc")
Expand Down
Expand Up @@ -16,7 +16,7 @@ class RawHtmlRenderingTest: AbstractRenderingTest() {
pluginOverrides = listOf(writerPlugin)
) {
renderingStage = { _, _ ->
val content = writerPlugin.renderedSourceDepenentContent("example/example/-html-test/test.html")
val content = writerPlugin.renderedSourceDependentContent("example/example/-html-test/test.html")
assert(content.count() == 1)
assertEquals(content.select("[data-togglable=example/jvm]").single().rawBrief,"This is an example <!-- not visible --> of html")

Expand Down Expand Up @@ -53,7 +53,7 @@ class RawHtmlRenderingTest: AbstractRenderingTest() {
pluginOverrides = listOf(writerPlugin)
) {
renderingStage = { _, _ ->
val content = writerPlugin.renderedSourceDepenentContent("example/example/-html-test/test-p.html")
val content = writerPlugin.renderedSourceDependentContent("example/example/-html-test/test-p.html")
assert(content.count() == 1)
assertEquals(content.select("[data-togglable=example/jvm]").single().rawBrief, "This is an <b> documentation </b>")

Expand Down

0 comments on commit 8356b56

Please sign in to comment.