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 4b3340f commit 23764fdCopy full SHA for 23764fd
doc-tool/src/dotty/tools/dottydoc/staticsite/Site.scala
@@ -167,8 +167,8 @@ case class Site(
167
private def defaultParams(pageLocation: JFile, additionalDepth: Int = 0): DefaultParams = {
168
val pathFromRoot = stripRoot(pageLocation)
169
val baseUrl: String = {
170
- val rootLen = root.toPath.normalize.getNameCount
171
- val assetLen = pageLocation.toPath.normalize.getNameCount
+ val rootLen = root.toPath.toAbsolutePath.normalize.getNameCount
+ val assetLen = pageLocation.toPath.toAbsolutePath.normalize.getNameCount
172
"../" * (assetLen - rootLen + additionalDepth) + "."
173
}
174
0 commit comments