gollum-site -- A static site generator for Gollum ================================================= ## Description Generates a static site from a Gollum Wiki. ## Installation The easiest way to install gollum-site is with RubyGems: $ [sudo] gem install gollum-site ## Usage Static sites can be generated using the executable provided: $ gollum-site generate Once a site has been generated (output to "_site" by default) you can use the gollum-site executable to start a web server for the site: $ gollum-site serve The executable provides a few options which are described in the help menu: $ gollum-site --help ## Static Site Templates The static site generator uses the [Liquid templating system](http://github.com/tobi/liquid/wiki) to render wiki pages. The generator looks for `_Layout.html` files to use as templates. Layouts affect all pages in their directory and any subdirectories that do not have a layout file of their own. A layout is a Liquid template applied to a wiki page during static site generation with the following data made available to it: * `wiki.base_path` The base path of the Wiki to which the page belongs * `page.content` The formatted content of the page * `page.title` The title of the page * `page.format` The format of the page (textile, org, etc.) * `page.author` The author of the last edit * `page.date` The date of the last edit ## Default Layout A default layout is applied to the root folder for wikis that do not define a root layout. The default layout is the same used in gollum without the edit features. It's possible to generate a site without the default template using the "--no_default_layout" option: $ gollum-site --no_default_layout generate ## Example To see gollum-site in action, let's use it to generate a static site from a Gollum Wiki. For this example I will use the Radiant wiki: $ git clone git://github.com/radiant/radiant.wiki.git $ cd radiant.wiki $ gollum-site generate $ gollum-site serve Now you can browse to http://localhost:8000 and view the Radiant wiki as a static site.