Commit 51082f46 authored by Julius Volz's avatar Julius Volz

Merge pull request #74 from sethwklein/source-pointer

Add README.md to make the generated repository point here.
parents cdca3305 e2599b3b
...@@ -21,10 +21,16 @@ route '/assets/*' do ...@@ -21,10 +21,16 @@ route '/assets/*' do
item.identifier[0..-2] item.identifier[0..-2]
end end
route '/README/' do
'/README.md'
end
compile '*' do compile '*' do
filter :erb filter :erb
if item[:extension] == 'md' if item[:title] == 'README.md'
# don't filter; this is for the GitHub repository
elsif item[:extension] == 'md'
#filter :kramdown #filter :kramdown
filter :redcarpet, options: {filter_html: true, autolink: true, no_intraemphasis: true, fenced_code_blocks: true, gh_blockcode: true, tables: true}, renderer_options: {with_toc_data: true} filter :redcarpet, options: {filter_html: true, autolink: true, no_intraemphasis: true, fenced_code_blocks: true, gh_blockcode: true, tables: true}, renderer_options: {with_toc_data: true}
filter :add_anchors filter :add_anchors
......
---
title: "README.md"
---
This repository is automatically generated from
https://github.com/prometheus/docs.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment