Skip to content

Commit

Permalink
trying versioned docs
Browse files Browse the repository at this point in the history
  • Loading branch information
erikerlandson committed Jun 10, 2024
1 parent 592ca3a commit e3d2906
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,20 @@ lazy val unidocs = project
// http://localhost:4242
import laika.ast.VirtualPath
import laika.config.{LinkConfig, ApiLinks, SourceLinks, TargetDefinition}
import laika.config.{Version, Versions}
import laika.theme.ThemeProvider
import laika.helium.Helium

val docVersions = Versions
.forCurrentVersion(Version("0.8.0", "0.8.0").setCanonical)
.withNewerVersions(
Version("0.9.0-RC1", "0.9.0-RC1").withLabel("release-candidate")
)

val docTheme: ThemeProvider = Helium.defaults
.site.versions(docVersions)
.build

lazy val docs = project
.in(file("site"))
.dependsOn(
Expand All @@ -213,6 +227,7 @@ lazy val docs = project
Compile / scalacOptions ~= (_.filterNot { x => x.startsWith("-W") })
)
.settings(
laikaTheme := docTheme,
laikaConfig := LaikaConfig.defaults
.withConfigValue(
LinkConfig.empty
Expand Down
1 change: 1 addition & 0 deletions docs/directory.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
laika.versioned = true
laika.navigationOrder = [
coulomb-core.md
coulomb-units.md
Expand Down

0 comments on commit e3d2906

Please sign in to comment.