Jodd.org Website
This is the source for Jodd's web site built with nanoc.
All submissions are welcome. To submit a change, fork this repo, commit your changes, and send us a pull request.
Build the site
You have two options. The first is to build and use it locally, so you should be prepared to do some environment configuration. The second option is to build it using Docker, so you don't have to install anything.
Local
Ruby 2.x is required to build the site.
Get the nanoc gem, plus kramdown
for Markdown parsing:
$ bundle installYou can see available commands with nanoc:
$ bundle exec nanoc -hNanoc has some nice documentation to get you started. Though if you're mainly concerned with editing or adding content, you won't need to know much about nanoc.
Nanoc compiles the site into static files living in ./output. It's
smart enough not to try to compile unchanged files:
$ bundle exec nanoc compileYou can setup whatever you want to view the files. You can run the local server to see the site:
$ bundle exec nanoc view
$ open http://localhost:3000Compilation times got you down? Use guard (recommended) in separate terminal:
$ bundle exec guard...or autocompile:
$ bundle exec nanoc autocompileThis starts a web server too, so there's no need to run nanoc view.
Docker
Use docker-run.sh to run the build using the Docker. First you need to build
an image:
$ docker-run.sh buildAfter the image is created, compilation is simple:
$ docker-run.sh compileor if you want, you can run the guard instead:
$ docker-run.sh guardYou can run the web server, too:
$ docker-run.sh serverEnjoy!