GeoMesa.org
Very much in progress...
This site is built with jekyll , a static site generator.
Installing jekyll
Jekyll v3 is now used on github.io.
jekyll v3
- Make sure Ruby 2.0 and its development package are installed:
sudo apt-get install ruby2.0 ruby2.0-dev - Install jekyll:
sudo gem2.0 install jekyll(requires ruby > 2.0 on Ubuntu) - Install jekyll-redirect-from:
sudo gem2.0 install jekyll-redirect-from - Install kramdown :
sudo gem2.0 install kramdown - Install rouge :
sudo gem2.0 install rouge - Install nodejs:
sudo apt-get install nodejsfor the javascript/coffeescript runtime
Generate and serve the site
The command jekyll serve --watch will generate the site in the _site directory, watch source files for changes, and serve it locally on port 4000.
Adding a tutorial
OBSOLETE: Many tutorials are now in the Sphinx-based documentation tree in the GeoMesa; consider putting your tutorial there instead.
- Add a markdown file with the following naming convention to the
_postsdirectory: YYYY-MM-DD-[title-of-the-tutorial].md. - In
_config.ymlmake sure the author of the tutorial exists in theauthorslist. - Add the following to the top of the tutorial markdown file:
---
title: (the title of the tutorial)
author: (the author key in the list in `_config.yml`)
layout: tutorial
---
{% include tutorial-header.html %}
(...your content here.)
The content between the ---'s is FrontMatter . The content between the {% %} is Liquid .
Syntax highlighting
Wrap any code snippets in the totorial in the following Liquid statements:
{% highlight LANGUAGE_IDENTIFIER %}
... code ...
{% endhighlight %}
Language identifiers can be found on the Pygments website.
You can add line numbers to the code snippet by including linenos after the language identifier, i.e. {% highlight scala linenos %}
Notes
- Changes made to
_config.ymlwill not be caught inwatchmode--need to restart jekyll.