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.
2 parents 02fbd14 + 396f993 commit cbe50b3Copy full SHA for cbe50b3
scala3doc/src/dotty/dokka/SourceLinks.scala
@@ -6,7 +6,10 @@ import dotty.dokka.model.api._
6
import dotty.tools.dotc.core.Contexts.Context
7
import scala.util.matching.Regex
8
9
-def pathToString(p: Path) = p.toString.replace('\\', '/')
+def pathToString(p: Path) =
10
+ import scala.jdk.CollectionConverters._
11
+ // !!! gives wrong result for absolute paths!
12
+ p.iterator.asScala.mkString("/")
13
14
trait SourceLink:
15
val path: Option[Path] = None
@@ -177,4 +180,4 @@ object SourceLinks:
177
180
ctx.args.revision,
178
181
// TODO (https://github.com/lampepfl/scala3doc/issues/240): configure source root
179
182
Paths.get("").toAbsolutePath
- )
183
+ )
0 commit comments