mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-18 21:34:39 +01:00
Add Scaladoc title and version number (#502)
* Add version and name to Scaladoc * Compile website on Travis as part of CI
This commit is contained in:
parent
1ff0dee934
commit
af47809300
25
build.sbt
25
build.sbt
@ -51,6 +51,22 @@ lazy val commonSettings = List(
|
||||
url("https://twitter.com/Chris_Stewart_5")
|
||||
)
|
||||
),
|
||||
////
|
||||
// scaladoc settings
|
||||
Compile / doc / scalacOptions := List(
|
||||
"-doc-title",
|
||||
"Bitcoin-S",
|
||||
"-doc-version",
|
||||
version.value,
|
||||
),
|
||||
// Set apiURL to define the base URL for the Scaladocs for our library.
|
||||
// This will enable clients of our library to automatically link against
|
||||
// the API documentation using autoAPIMappings.
|
||||
apiURL := homepage.value.map(_.toString + "/api").map(url(_)),
|
||||
|
||||
// scaladoc settings end
|
||||
////
|
||||
|
||||
scalacOptions in Compile := compilerOpts,
|
||||
scalacOptions in Test := testCompilerOpts,
|
||||
//show full stack trace of failed tests
|
||||
@ -120,15 +136,6 @@ lazy val bitcoins = project
|
||||
.settings(libraryDependencies ++= Deps.root)
|
||||
.enablePlugins(ScalaUnidocPlugin, GitVersioning)
|
||||
.settings(
|
||||
// scaladoc settings
|
||||
// TODO this is not working properly
|
||||
inTask(unidoc)(
|
||||
scalacOptions in Compile ++= List(
|
||||
"-doc-title",
|
||||
"Bitcoin-S",
|
||||
"-doc-version",
|
||||
version.value
|
||||
)),
|
||||
// we modify the unidoc task to move the generated Scaladocs into the
|
||||
// website directory afterwards
|
||||
Compile / unidoc := {
|
||||
|
Loading…
Reference in New Issue
Block a user