Commit 1e997206 authored by Tomi Sarvela's avatar Tomi Sarvela

Create single-run templates for post-merge results

parent 9e4766c6
......@@ -28,6 +28,7 @@ preprocess do
@config[:trees].each {|tree| create_tree(tree)}
create_pre_merge_templates('drm-tip')
create_post_merge_templates('drm-tip')
end
layout '/**/*.erb', :erb
......
......@@ -39,6 +39,16 @@ module Custom
@items.create("", attributes, "/tree/#{tree_name}/pre-merge-templates/filelist.html")
end
def create_post_merge_templates(tree_name)
@config[:view_types].each_pair do |file, view_type|
attributes = { tree: tree_name,
current_tree_view: file,
current_tree_view_type: view_type,
pre_merge: false }
@items.create("", attributes, "/tree/#{tree_name}/post-merge-templates/#{file}")
end
end
def create_toc_and_title_from_headings(item)
html = Kramdown::Document.new(item.raw_content).to_html
......
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