@@ -1160,7 +1160,9 @@ object Build {
1160
1160
val testcasesOutputDir = taskKey[String ](" Root directory where tests classses are generated" )
1161
1161
val testcasesSourceRoot = taskKey[String ](" Root directory where tests sources are generated" )
1162
1162
val generateSelfDocumentation = taskKey[Unit ](" Generate example documentation" )
1163
+ // Note: the two tasks below should be one, but a bug in Tasty prevents that
1163
1164
val generateScala3Documentation = taskKey[Unit ](" Generate documentation for dotty lib" )
1165
+ val generateScala3StdlibDocumentation = taskKey[Unit ](" Generate documentation for Scala3 standard library" )
1164
1166
val generateTestcasesDocumentation = taskKey[Unit ](" Generate documentation for testcases, usefull for debugging tests" )
1165
1167
lazy val `scala3doc` = project.in(file(" scala3doc" )).asScala3doc
1166
1168
lazy val `scala3doc-testcases` = project.in(file(" scala3doc-testcases" )).asScala3docTestcases
@@ -1503,17 +1505,27 @@ object Build {
1503
1505
}.value,
1504
1506
generateScala3Documentation := Def .taskDyn {
1505
1507
val dottyJars : Seq [java.io.File ] = Seq (
1506
- // (`scala3-interfaces`/Compile/products).value,
1507
- // (`tasty-core-bootstrapped`/Compile/products).value,
1508
- // (`scala3-library-bootstrapped`/Compile/products).value,
1509
- (`stdlib-bootstrapped`/ Compile / products).value,
1508
+ (`scala3-interfaces`/ Compile / products).value,
1509
+ (`tasty-core-bootstrapped`/ Compile / products).value,
1510
+ (`scala3-library-bootstrapped`/ Compile / products).value,
1510
1511
).flatten
1511
1512
1512
1513
val roots = joinProducts(dottyJars)
1513
1514
1514
1515
if (dottyJars.isEmpty) Def .task { streams.value.log.error(" Dotty lib wasn't found" ) }
1515
1516
else generateDocumentation(roots, " Scala 3" , " scala3" , " -p scala3doc/scala3-docs --projectLogo scala3doc/scala3-docs/logo.svg --revision master" )
1516
1517
}.value,
1518
+
1519
+ generateScala3StdlibDocumentation:= Def .taskDyn {
1520
+ val dottyJars : Seq [java.io.File ] = Seq (
1521
+ (`stdlib-bootstrapped`/ Compile / products).value,
1522
+ ).flatten
1523
+
1524
+ val roots = joinProducts(dottyJars)
1525
+
1526
+ if (dottyJars.isEmpty) Def .task { streams.value.log.error(" Dotty lib wasn't found" ) }
1527
+ else generateDocumentation(roots, " Scala 3" , " scala3-stdlib" , " -p scala3doc/scala3-docs --syntax wiki --projectLogo scala3doc/scala3-docs/logo.svg --revision master" )
1528
+ }.value,
1517
1529
generateTestcasesDocumentation := Def .taskDyn {
1518
1530
generateDocumentation(Build .testcasesOutputDir.in(Test ).value, " Scala3doc testcases" , " testcases" , " --revision master" )
1519
1531
}.value,
0 commit comments