@@ -1455,10 +1455,11 @@ object Build {
14551455
14561456 def asScala3doc : Project = {
14571457 def generateDocumentation (targets : String , name : String , outDir : String , params : String = " " ) = Def .taskDyn {
1458- val sourcesAndRevision = " -s github://lampepfl/dotty --revision master"
1458+ val projectVersion = version.value
1459+ val sourcesAndRevision = s " -s github://lampepfl/dotty --revision master --projectVersion $projectVersion"
14591460 run.in(Compile ).toTask(
14601461 s """ -d output/ $outDir -t $targets -n " $name" $sourcesAndRevision $params"""
1461- )
1462+ )
14621463 }
14631464
14641465 def joinProducts (products : Seq [java.io.File ]): String =
@@ -1492,7 +1493,11 @@ object Build {
14921493 // There is a bug in dokka that prevents parallel tests withing the same jvm
14931494 fork.in(test) := true ,
14941495 generateSelfDocumentation := Def .taskDyn {
1495- generateDocumentation(classDirectory.in(Compile ).value.getAbsolutePath, " scala3doc" , " self" , " -p documentation" )
1496+ generateDocumentation(
1497+ classDirectory.in(Compile ).value.getAbsolutePath,
1498+ " scala3doc" , " self" ,
1499+ " -p documentation --projectLogo documentation/logo.svg" ,
1500+ )
14961501 }.value,
14971502 generateScala3Documentation := Def .taskDyn {
14981503 val dottyJars : Seq [java.io.File ] = Seq (
@@ -1506,7 +1511,7 @@ object Build {
15061511 val roots = joinProducts(dottyJars)
15071512
15081513 if (dottyJars.isEmpty) Def .task { streams.value.log.error(" Dotty lib wasn't found" ) }
1509- else generateDocumentation(roots, " Scala 3" , " scala3" , " -p scala3-docs" )
1514+ else generateDocumentation(roots, " Scala 3" , " scala3" , " -p scala3-docs --projectLogo scala3-docs/logo.svg " )
15101515 }.value,
15111516 generateTestcasesDocumentation := Def .taskDyn {
15121517 generateDocumentation(Build .testcasesOutputDir.in(Test ).value, " Scala3doc testcases" , " testcases" )
0 commit comments