templates/api/fulldoc/html/setup.rb in yard-api-0.1.1 vs templates/api/fulldoc/html/setup.rb in yard-api-0.1.2

- old
+ new

@@ -10,10 +10,11 @@ build_json_objects_map generate_assets serialize_index serialize_static_pages + serialize_mega_index if api_options['resource_index'] options.delete(:objects) options[:resources].each do |resource, controllers| serialize_resource(resource, controllers) @@ -38,9 +39,19 @@ def serialize_index options[:file] = api_options['readme'] serialize('index.html') options.delete(:file) +end + +def serialize_mega_index + options[:all_resources] = true + + Templates::Engine.with_serializer("all_resources.html", options[:serializer]) do + T('layout').run(options) + end + + options.delete(:all_resources) end def asset(path, content) options[:serializer].serialize(path, content) if options[:serializer] end