We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9b3f1a commit c7bb65cCopy full SHA for c7bb65c
buildSrc/src/main/kotlin/dokka-convention.gradle.kts
@@ -97,11 +97,11 @@ tasks.register("trimNavigationFiles") {
97
val navigation = moduleDir.resolve("navigation.html").toFile()
98
val doc = Jsoup.parse(navigation)
99
100
- // Fix navigation links
101
- doc.select("a[href^='../../../../']").forEach { anchor ->
+ // Remove a single parent directory from all navigation links
+ doc.select("a[href^=../]").forEach { anchor ->
102
val originalHref = anchor.attr("href")
103
- val trimmedHref = originalHref.replace("../../../../", "")
104
- anchor.attr("href", trimmedHref)
+ val updatedHref = originalHref.removePrefix("../")
+ anchor.attr("href", updatedHref)
105
}
106
107
// Trim side menus
0 commit comments