(G)enerate (R)esources (U)sing (S)cala
Static site generator written in Scala using Scalatags for templates and Flexmark for markdown.
Install via the following:
brew install chipsenkbeil/personal/grus
Then run on the command line via:
grus ...
Grab one of the fat jars listed below and run via java -jar DOWNLOADED_JAR.jar
.
- Built with Scala 2.10: Download latest
- Built with Scala 2.11: Download latest
- Built with Scala 2.12: Download latest
You can view help information by adding --help
to the base jar or any of its commands.
E.g. java -jar DOWNLOADED_JAR.jar --help
or java -jar DOWNLOADED_JAR.jar generate --help
.
To use in sbt (0.13.x) to generate your own content, add the following plugin:
addSbtPlugin("org.senkbeil" %% "sbt-grus" % "0.1.1")
sbt grusSkeleton
will create a new theme or website outline in the specified output directorysbt grusGenerate
will generate the website and put the contents in an output directorysbt grusServe
will generate the website and start a server to display it locallysbt grusPublish
will publish the contents output fromgrusGenerate
You can add --help
to any of the above commands to display help information
for the specific command. E.g. sbt "grusGenerate --help"
.
To use the API to create a custom theme, add the following dependency:
libraryDependencies += "org.senkbeil" %% "grus-layouts" % "0.1.1"
See the Scala Debugger docs module for an example of how to write a custom theme.
See the Scala Debugger grus.toml for an example of how to write a config file to fill in values.