Laika can help you easily add documentation to your SBT project. Whole process is described here and following list contains necessary steps:
- Add a line to your project/plugins.sbt file
addSbtPlugin("org.planet42" % "laika-sbt" % "0.5.0")
- These lines to build.sbt
import laika.sbt.LaikaSbtPlugin.{LaikaPlugin, LaikaKeys}
import LaikaKeys._
LaikaPlugin.defaults - If you want to redefine default settings
sourceDirectories in Laika := Seq(new java.io.File("app/docs"))
includeAPI in Laika := true - Build documentation by executing following command from SBT console
laika:site
Keine Kommentare:
Kommentar veröffentlichen