apps/blueprint/config.rb in brief-1.8.11 vs apps/blueprint/config.rb in brief-1.8.12

- old
+ new

@@ -6,5 +6,12 @@ if summary = briefcase.pages.find {|p| p.title == "Summary" } hash.merge!(summary: summary.to_model.as_json(:rendered=>true, :content=>true)) end end end + +view(:table_of_contents) do |*args| + briefcase = args.first + + doc = Brief::Document.new(briefcase.docs_path.join("index.md"), document_type: "outline") + doc && doc.to_model +end