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 6296932 commit 68ed40dCopy full SHA for 68ed40d
buildSrc/src/main/kotlin/dokka-convention.gradle.kts
@@ -97,6 +97,13 @@ tasks.register("trimNavigations") {
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 ->
102
+ val originalHref = anchor.attr("href")
103
+ val trimmedHref = originalHref.replace("../", "")
104
+ anchor.attr("href", trimmedHref)
105
+ }
106
+
107
// Trim side menus
108
doc.select("div.sideMenu > div.toc--part")
109
.filterNot { it.id().startsWith("$moduleName-nav-submenu") }
0 commit comments