Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling error 'depenent' #2594

Merged
merged 1 commit into from Aug 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -246,7 +246,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 @@ -969,8 +969,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