templates/api/fulldoc/html/setup.rb in yard-api-0.1.3 vs templates/api/fulldoc/html/setup.rb in yard-api-0.1.4
- old
+ new
@@ -8,10 +8,15 @@
group_by { |o| o.tags('API').first.text }.
sort_by { |o| o.first }
build_json_objects_map
generate_assets
+
+ if api_options.one_file
+ return serialize_onefile_index
+ end
+
serialize_index
serialize_static_pages
serialize_resource_index if api_options['resource_index']
options.delete(:objects)
@@ -36,11 +41,9 @@
end
options.delete(:controllers)
end
def serialize_index
- return serialize_onefile_index if api_options.one_file
-
options[:file] = api_options['readme']
serialize('index.html')
options.delete(:file)
end