kantan.sbt adds a new DocumentationPlugin. Enabling it on a project will:

All these plugins put together mean that, when you run makeSite:

Running ghpagesPushSite will then push this to your project ghpages branch.

This requires the git.remoteRepo setting to be set to your project’s URI on github.

Additionally, if scmInfo is set, your scaladoc will link to your project’s source on github.

Other tutorials: