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


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

Nanoc / sourceDirectory := sourceDirectory.value / "conan"

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

// Puts output in `target/site/conan`
siteSubdirName in Nanoc := "conan"