Skip to content

Commit

Permalink
Fix latest version displayed in docs (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
majk-p authored Aug 12, 2024
1 parent 7df443d commit d3c5dcd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ lazy val core = (projectMatrix in file("modules/core"))
.jvmPlatform(
scalaVersions = scalaVersions,
libraryDependencies += "com.lihaoyi" %% "os-lib" % Versions.oslib
).jsPlatform(scalaVersions = scalaVersions,
)
.jsPlatform(
scalaVersions = scalaVersions,
// module support is required to run tests
Test / scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) }
)
Expand Down Expand Up @@ -176,10 +178,7 @@ lazy val docs = project
mdocIn := new File("docs/markdown/"),
mdocOut := new File("website/docs"),
mdocVariables := Map(
"LATEST_STABLE_VERSION" -> {
if (isSnapshot.value && latestStableVersion.isDefined) latestStableVersion.get
else version.value
}
"LATEST_STABLE_VERSION" -> latestStableVersion.getOrElse(version.value)
),
fork := false // Without this set to false mdoc would mess up it's paths and stop working
)
Expand Down

0 comments on commit d3c5dcd

Please sign in to comment.