The sbt-site plugin has direct support for building Sphinx projects. To enable Sphinx site generation, simply enable the associated plugin in your build.sbt file:


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:

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