aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/resolvers
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-04-21 13:10:03 +0200
committerGitHub <noreply@github.com>2021-04-21 13:10:03 +0200
commitdb337c6b489d41f7c62bc44f9edb3e5eaa62e0d5 (patch)
tree977bff9096271ac32635ebece028005d80ea0e89 /plugins/base/src/main/kotlin/resolvers
parent7976824f185ac846f687971cca449da2e4c24728 (diff)
downloaddokka-db337c6b489d41f7c62bc44f9edb3e5eaa62e0d5.tar.gz
dokka-db337c6b489d41f7c62bc44f9edb3e5eaa62e0d5.tar.bz2
dokka-db337c6b489d41f7c62bc44f9edb3e5eaa62e0d5.zip
Make anchors stable (#1851)
* Make anchors stable * Remove backing field from merged and all in CompositeSourceSetID
Diffstat (limited to 'plugins/base/src/main/kotlin/resolvers')
-rw-r--r--plugins/base/src/main/kotlin/resolvers/local/DokkaBaseLocationProvider.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/resolvers/local/DokkaBaseLocationProvider.kt b/plugins/base/src/main/kotlin/resolvers/local/DokkaBaseLocationProvider.kt
index fa133045..41a9a7e2 100644
--- a/plugins/base/src/main/kotlin/resolvers/local/DokkaBaseLocationProvider.kt
+++ b/plugins/base/src/main/kotlin/resolvers/local/DokkaBaseLocationProvider.kt
@@ -1,5 +1,6 @@
package org.jetbrains.dokka.base.resolvers.local
+import org.jetbrains.dokka.base.renderers.shortenToUrl
import org.jetbrains.dokka.model.DisplaySourceSet
import org.jetbrains.dokka.pages.DCI
import org.jetbrains.dokka.pages.RootPageNode
@@ -17,6 +18,6 @@ abstract class DokkaBaseLocationProvider(
* 2040 characters limit
*/
open fun anchorForDCI(dci: DCI, sourceSets: Set<DisplaySourceSet>): String =
- (dci.dri.toString() + "/" + dci.kind + "/" + sourceSets.hashCode()).urlEncoded()
+ (dci.dri.shortenToUrl().toString() + "/" + dci.kind + "/" + sourceSets.shortenToUrl()).urlEncoded()
}