Overview
This plugin adds ReStructuredText support to Jekyll and Octopress. It renders ReST in posts and pages, and provides a custom directives to support Octopress-compatible syntax highlighting.
Requirements
Jekyll or Octopress >= 2.0
Docutils
Pygments
Installation
Install Docutils and Pygments.
The most convenient way is to use virtualenv_burrito:
$ curl -s https://raw.github.com/brainsik/virtualenv-burrito/master/virtualenv-burrito.sh | bash $ source /Users/xdissent/.venvburrito/startup.sh $ mkvirtualenv jekyll-rst $ pip install docutils pygmentsInstall RbST.
If you use bundler with Octopress, add gem 'RbST' to your Gemfile in the development group, then run bundle install. Otherwise, gem install RbST.
Install the plugin.
For Jekyll:
$ cd <jekyll-project-path> $ git submodule add https://github.com/xdissent/jekyll-rst.git _plugins/jekyll-rstFor Octopress:
$ cd <octopress-project-path> $ git submodule add https://github.com/xdissent/jekyll-rst.git plugins/jekyll-rstStart blogging in ReStructuredText. Any file with the .rst extension will be parsed as ReST and rendered into HTML.
Octopress Tips
Use .. more in your ReST documents to indicate where Octopress's excerpt tag should split your content for summary views.