Skip to content

Commit

Permalink
Fix generating scala-yaml docs, move docsSettings to project (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwronski authored Aug 1, 2021
2 parents f9fe6ac + 1c05a78 commit 91e1080
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,39 @@ lazy val munit: Seq[Setting[_]] = Seq(
testFrameworks += new TestFramework("munit.Framework")
)

Compile / doc / scalacOptions ++= Seq(
"-project", "Scala-yaml",
"-siteroot", "docs",
"-project-version", version.value,
"-project-logo", "docs/logo.svg",
"-social-links:" +
"github::https://github.com/VirtusLab/scala-yaml," +
"twitter::https://twitter.com/VirtusLab",
"-project-footer", s"Copyright (c) 2021, VirtusLab",
"-source-links:github://VirtusLab/scala-yaml",
"-revision", "master"
)

Compile / doc := {
val out = (Compile / doc).value
IO.copyDirectory((Compile / doc / target).value, file("generated-docs"))
out
}
lazy val docsSettings = Seq(
Compile / doc / scalacOptions ++= Seq(
"-project",
"Scala-yaml",
"-siteroot",
"docs",
"-project-version",
version.value,
"-project-logo",
"docs/logo.svg",
"-social-links:" +
"github::https://github.com/VirtusLab/scala-yaml," +
"twitter::https://twitter.com/VirtusLab",
"-project-footer",
s"Copyright (c) 2021, VirtusLab",
"-source-links:github://VirtusLab/scala-yaml",
"-revision",
"master"
),
Compile / doc := {
val out = (Compile / doc).value
IO.copyDirectory((Compile / doc / target).value, file("generated-docs"))
out
}
)

lazy val scalaYaml = crossProject(JSPlatform, JVMPlatform)
.in(file("yaml"))
.settings(
name := projectName,
scalaVersion := scala3Version,
semanticdbVersion := scalafixSemanticdb.revision,
semanticdbEnabled := true,
name := projectName,
scalaVersion := scala3Version,
semanticdbVersion := scalafixSemanticdb.revision,
semanticdbEnabled := true
)
.settings(docsSettings)
.settings(munit)

0 comments on commit 91e1080

Please sign in to comment.