Skip to content

Commit

Permalink
Fix generation of list of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Jul 10, 2024
1 parent 95c2b1d commit dd42b00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ val commonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq(
Test / unmanagedSourceDirectories ++= versionedScalaSourceDirectories((Test / sourceDirectory).value, scalaVersion.value),
updateDocs := Def.taskDyn {
val files1 = UpdateVersionInDocs(sLog.value, organization.value, version.value)
// for the root project the sourceDirectory points to src, so ../ will point to the root directory of the project
GenerateListOfExamples(sLog.value, sourceDirectory.value.getParentFile)
Def.task {
(documentation.jvm(documentationScalaVersion) / mdoc).toTask("").value
// Generating the list only after mdoc is done (as it overrides what's in generated_doc)
// For the root project the sourceDirectory points to src, so ../ will point to the root directory of the project
GenerateListOfExamples(sLog.value, sourceDirectory.value.getParentFile)
files1 ++ Seq(file("generated-doc/out"))
}
}.value,
Expand Down

0 comments on commit dd42b00

Please sign in to comment.