Skip to content

Commit ff78518

Browse files
committed
Fix incorrect parser used in nightly scaladoc
Previously a sourceDirectory sbt task would resolve to "library/src/main" which usually would be correct, but in the case of the scala 3 library, we have the sources directly under `library/src` This lead to the fact that the incorrectly set `-comment-syntax` option could never match against the prefix for markdown, and would use the wiki syntax for all scala3-library sources.
1 parent 6dc3737 commit ff78518

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

project/Build.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2207,8 +2207,7 @@ object ScaladocConfigs {
22072207
val stdLibRoot = projectRoot.relativize(managedSources.toPath.normalize())
22082208
val docRootFile = stdLibRoot.resolve("rootdoc.txt")
22092209

2210-
val dottyManagesSources =
2211-
(`scala3-library-bootstrapped`/Compile/sourceDirectory).value
2210+
val dottyManagesSources = (`scala3-library-bootstrapped`/Compile/baseDirectory).value
22122211

22132212
val tastyCoreSources = projectRoot.relativize((`tasty-core-bootstrapped`/Compile/scalaSource).value.toPath().normalize())
22142213

0 commit comments

Comments
 (0)