From d21ce878b5eb027f08985d2406f9937801391387 Mon Sep 17 00:00:00 2001 From: Michal Pawlik Date: Mon, 12 Aug 2024 18:18:49 +0200 Subject: [PATCH] Fix latest versino displayed in docs --- build.sbt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index 4676571..0d08c49 100644 --- a/build.sbt +++ b/build.sbt @@ -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) } ) @@ -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 )