From 83ba1a2c76c3017ad789d0dc666e2595721ff7d3 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Sun, 18 Aug 2013 13:34:35 +0200 Subject: [PATCH] website: generate toc data for linking into headers A note: redcarpet just added an awesome feature that makes the anchor links human readable. i.e `shell-provisioner` instead of `toc_0`. see: https://github.com/vmg/redcarpet/blob/master/CHANGELOG.md#changelog It's not yet released, but when it is we shpould upgrade to that, ya! --- website/config.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/config.rb b/website/config.rb index 6d5da1110..fb66cd2ad 100644 --- a/website/config.rb +++ b/website/config.rb @@ -45,7 +45,9 @@ set :images_dir, 'images' # Use the RedCarpet Markdown engine set :markdown_engine, :redcarpet -set :markdown, :fenced_code_blocks => true +set :markdown, + :fenced_code_blocks => true, + :with_toc_data => true # Build-specific configuration configure :build do