Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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 install

You can see available commands with nanoc:

$ bundle exec nanoc -h

Nanoc 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 compile

You 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:3000

Compilation times got you down? Use guard (recommended) in separate terminal:

$ bundle exec guard

...or autocompile:

$ bundle exec nanoc autocompile

This 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 build

After the image is created, compilation is simple:

$ docker-run.sh compile

or if you want, you can run the guard instead:

$ docker-run.sh guard

You can run the web server, too:

$ docker-run.sh server

Enjoy!

About

Jodd site and documentation in plain markdown.

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.