From ff785187e85c344b6037c71c1866dd81e6abea12 Mon Sep 17 00:00:00 2001 From: Jan Chyb Date: Wed, 6 Sep 2023 21:13:29 +0200 Subject: [PATCH] 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. --- project/Build.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project/Build.scala b/project/Build.scala index 476616fa2a3b..ee1ed242e1b2 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -2207,8 +2207,7 @@ object ScaladocConfigs { val stdLibRoot = projectRoot.relativize(managedSources.toPath.normalize()) val docRootFile = stdLibRoot.resolve("rootdoc.txt") - val dottyManagesSources = - (`scala3-library-bootstrapped`/Compile/sourceDirectory).value + val dottyManagesSources = (`scala3-library-bootstrapped`/Compile/baseDirectory).value val tastyCoreSources = projectRoot.relativize((`tasty-core-bootstrapped`/Compile/scalaSource).value.toPath().normalize())