Skip to content

Commit

Permalink
add laika conf to support @:api
Browse files Browse the repository at this point in the history
  • Loading branch information
erikerlandson committed Sep 17, 2023
1 parent 512f99e commit a225e8b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ lazy val unidocs = project
// https://typelevel.org/sbt-typelevel/site.html
// sbt docs/tlSitePreview
// http://localhost:4242
import laika.ast.ExternalTarget
import laika.rewrite.link.{LinkConfig, ApiLinks, SourceLinks, TargetDefinition}
lazy val docs = project
.in(file("site"))
.dependsOn(
Expand All @@ -217,6 +219,18 @@ lazy val docs = project
// at least until I can get a better handle on how to work with them
Compile / scalacOptions ~= (_.filterNot { x => x.startsWith("-W") })
)
.settings(
laikaConfig := LaikaConfig.defaults
.withConfigValue(
LinkConfig.empty
.addApiLinks(
// default will be coulomb api
ApiLinks(baseUri =
"https://www.javadoc.io/doc/com.manyangled/coulomb-docs_3/latest/"
)
)
)
)

// https://github.com/sbt/sbt-jmh
// sbt "benchmarks/Jmh/run .*Benchmark"
Expand Down
3 changes: 3 additions & 0 deletions docs/coulomb-parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ import coulomb.parser.standard.RuntimeUnitDslParser

### examples

test link:
@:api(coulomb.Quantity$)

```scala mdoc
val dslparser: RuntimeUnitParser = RuntimeUnitDslParser.of[
"coulomb.units.si" *:
Expand Down

0 comments on commit a225e8b

Please sign in to comment.