bitcoin-s/bitcoin-s-docs/docs.sbt
Chris Stewart 277b18720e Bump scalac version to 2.13.1 (#747)
* Bump scalac version to 2.13.1

* bump travis scalac version

* Bump scoverage to supposedly work with 2.13.1

* Bump other scalac versions

* upgrade mdoc plugin version

* Bump missing scala 2.13.1 version in travis
2019-12-12 09:00:15 -06:00

46 lines
1.0 KiB
Scala

lazy val `bitcoin-s` = RootProject(file("."))
lazy val publishWebsite = taskKey[Unit]("Publish website")
publishWebsite := Def
.sequential(
`bitcoin-s` / Compile / unidoc,
Compile / docusaurusPublishGhpages
)
.value
name := "bitcoin-s-docs"
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" -> "0.2.0",
"UNSTABLE_VERSION" -> version.value
)
enablePlugins(MdocPlugin, DocusaurusPlugin)
// 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 := None
Compile / bloopGenerate := None
libraryDependencies ++= Deps.docs