Skip to content

Commit e2b64e9

Browse files
Fix incorrect comment parser used in nightly scaladoc (#18523)
Previously a `sourceDirectory` sbt task would resolve to `library/src/main` which would usually be correct, but in the case of scala3-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. Fixes #18511
2 parents 5eb73b6 + ff78518 commit e2b64e9

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)