Sphinx

The sbt-site plugin has direct support for building Sphinx projects.

To enable the “sbt site Sphinx” plugin in your sbt project, add the following to your project/plugins.sbt file:

addSbtPlugin("com.github.sbt" % "sbt-site-sphinx" % "1.8.0+7-5089b00b-SNAPSHOT")

And enable the SphinxPlugin plugin in your build.sbt file:

sourceenablePlugins(SphinxPlugin)

This assumes you have a Sphinx project under the src/sphinx directory. To change this, set the sourceDirectory key in the Sphinx scope:

Sphinx / sourceDirectory := sourceDirectory.value / "androsphinx"

Similarly, the output can be redirected to a subdirectory of target/site via the siteSubdirName key in Sphinx scope:

source// Puts output in `target/site/giza`
Sphinx / siteSubdirName := "giza"