Skip to content

Commit

Permalink
Generate ScalaDoc diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
ceedubs committed Jun 25, 2019
1 parent e6df6a0 commit 501882b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ lazy val docs = project
"ORG" -> organization.value,
"VERSION" -> stableVersion
),
unidocProjectFilter in (ScalaUnidoc, unidoc) := inProjects(regex.jvm, regexGen.jvm, parser.jvm),
target in (ScalaUnidoc, unidoc) := (baseDirectory in LocalRootProject).value / "website" / "static" / "api",
unidocProjectFilter in (ScalaUnidoc, unidoc) := inProjects(regex.jvm, regexGen.jvm, parser.jvm)
cleanFiles += (target in (ScalaUnidoc, unidoc)).value,
scalacOptions in (ScalaUnidoc, unidoc) += "-diagrams"
)
.settings(noPublishSettings)

Expand Down Expand Up @@ -234,6 +236,7 @@ val noPublishSettings = Seq(
)

addCommandAlias("format", ";scalafmtSbt;scalafmtAll")
addCommandAlias("docs", ";docs/clean;docs/unidoc;docs/mdoc")
addCommandAlias("lint", ";scalafmtSbtCheck;scalafmtCheckAll")
addCommandAlias("validate", ";lint;doc;test;docs/mdoc")
addCommandAlias("makeSite", ";docs/clean;docs/docusaurusCreateSite;docs/unidoc")
addCommandAlias("validate", ";lint;docs;test")
addCommandAlias("makeSite", ";docs/clean;docs/unidoc;docs/docusaurusCreateSite")
5 changes: 4 additions & 1 deletion scripts/builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ set -euxo pipefail

case "$1" in
"docs")
sbt 'docs/mdoc'
sbt 'docs'
;;
"lint")
sbt 'lint'
;;
"validate")
sbt 'validate'
;;
"testJVM")
sbt '+jvm/test'
;;
Expand Down

0 comments on commit 501882b

Please sign in to comment.