Sancho
is static site generator for Github Pages. It
supposed that your site will be placed in docs
directory,
under docs
git branch.
For rendering HTML Sancho
utilizes Pandoc, and it is supposed that your site
pages will be written in Markdown or Pandoc
Markdown.
By default configuration (sancho.yml
) your site will
consists of two files README.md
and
CHANGELOG.md
. It will also create robots.txt
and sitemap.xml
files. When you don’t need them - just
remove *.erb
inside _layouts
directory.
Run
bundle add sancho --git https://github.com/nvoynov/sancho.git
Modify Rakefile adding
require "rake"
require "sancho"
= Sancho.tasks
source, folders Rake.application.rake_require source, folders
Install pandoc
$ git checkout docs
$ rake sancho:init
sancho.yml
for pages and
_layouts/header.md
for navbar$ rake sancho:generate
$ git push -u origin docs
You can provide your own HTML template by placing
_layouts/template.html
file. Read Pandoc Templates
section for details.