Skip to content

Commit

Permalink
Fixed static site generation using scaladoc
Browse files Browse the repository at this point in the history
  • Loading branch information
hohonuuli committed Aug 13, 2024
1 parent 6b71cb6 commit 9a5ebed
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
21 changes: 10 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
import Dependencies._



Global / onChangedBuildSource := ReloadOnSourceChanges
Compile / doc / scalacOptions ++= Seq(
"-groups",
"-project-footer",
"Monterey Bay Aquarium Research Institute",
"-siteroot",
"src/docs",
"-doc-root-content",
"src/docs/index.md"
)

ThisBuild / javacOptions ++= Seq("-target", "21", "-source", "21")
ThisBuild / licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
Expand All @@ -30,6 +19,7 @@ ThisBuild / scalacOptions ++= Seq(
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked"

)
ThisBuild / startYear := Some(2024)
//ThisBuild / updateOptions := updateOptions.value.withCachedResolution(true)
Expand Down Expand Up @@ -112,6 +102,15 @@ lazy val oni = project
tapirSwagger,
tapirVertex,
typesafeConfig
),
scalacOptions ++= Seq(
"-groups",
"-project-footer",
"Monterey Bay Aquarium Research Institute",
"-siteroot",
"oni/src/docs",
"-doc-root-content",
"oni/src/docs/index.md"
)
)

Expand Down
2 changes: 1 addition & 1 deletion oni/src/docs/_docs/development/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ This is a normal [sbt](https://www.scala-sbt.org) project. You can compile code

Documentation can be added as markdown files in `docs` and will be included automatically when you run `scaladoc`.

When updating SBT version, make sure to update the devcontainer image in [devcontainer.json](.devcontainer/devcontainer.json). It's versions are `eclipse-temurin-<java.version>_<sbt.version>_<scala.version>`
When updating SBT version, make sure to update the devcontainer image in devcontainer.json. It's versions are `eclipse-temurin-<java.version>_<sbt.version>_<scala.version>`

2 changes: 1 addition & 1 deletion oni/src/docs/_docs/development/nima.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nima

Oni uses Helidon's Webserver (aka Nima) to serve the web application.
Oni was originally written using Helidon's Webserver (aka Nima) to serve the web application. Currently, Oni uses Vert.X. The notes below are in case we switch back to Nima.

## Supporting gzip

Expand Down
2 changes: 1 addition & 1 deletion oni/src/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# oni

![MBARI logo](_assets/images/logo-mbari-3b.png)
![MBARI logo](images/logo-mbari-3b.png)

[Scala API](api/index.html)

0 comments on commit 9a5ebed

Please sign in to comment.