bitcoin-s/bitcoin-s-docs/docs.sbt
Scala Steward a513cab030
Update sbt-bloop to 1.5.11 (#5226)
* Update sbt-bloop to 1.5.11

* Fix sbt bloop config

---------

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2023-10-31 06:55:25 -05:00

41 lines
1.1 KiB
Scala

lazy val publishWebsite = taskKey[Unit]("Publish website")
publishWebsite := Def
.sequential(
Compile / unidoc,
Compile / docusaurusPublishGhpages
)
.value
publish / skip := true
////////
/// Mdoc
// Without this we get errors on bad links,
// but those links are to other parts of
// the website, AKA false errors.
// See this issue: https://github.com/scalameta/mdoc/issues/94
mdocExtraArguments := List("--no-link-hygiene")
// these variables gets passed to mdoc, and can be read
// from there
mdocVariables ++= Map(
"STABLE_VERSION" -> CommonSettings.previousStableVersion,
"UNSTABLE_VERSION" -> version.value
)
// this expoes the values below as typed values in Scala sources
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](mdocVariables, mdocExtraArguments)
buildInfoPackage := "org.bitcoins.docs"
// Mdoc end
///////
Test / bloopGenerate := sbt.Value(None)
Compile / bloopGenerate := sbt.Value(None)
//https://stackoverflow.com/questions/26940253/in-sbt-how-do-you-override-scalacoptions-for-console-in-all-configurations
Compile / scalacOptions ~= (_.filterNot(s => s == "-Xfatal-warnings"))