summaryrefslogtreecommitdiffhomepage
path: root/templates/default/fulldoc/html/setup.rb
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-09-25 10:11:59 -0300
committerSeba Gamboa <[email protected]>2015-09-25 10:11:59 -0300
commit723c2d4bd9575f05b5272a9e2eacb45e1d538af3 (patch)
tree3a1f99ea4ff260eca955c63bf8d76bd7589232e5 /templates/default/fulldoc/html/setup.rb
parent5a6d8a0131140873fa1cd37bd3d76b0b06d633ae (diff)
downloadyard-mruby-723c2d4bd9575f05b5272a9e2eacb45e1d538af3.tar.gz
yard-mruby-723c2d4bd9575f05b5272a9e2eacb45e1d538af3.zip
Headers and functions list
Diffstat (limited to 'templates/default/fulldoc/html/setup.rb')
-rw-r--r--templates/default/fulldoc/html/setup.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/default/fulldoc/html/setup.rb b/templates/default/fulldoc/html/setup.rb
index cd2e29a..5e306e8 100644
--- a/templates/default/fulldoc/html/setup.rb
+++ b/templates/default/fulldoc/html/setup.rb
@@ -14,12 +14,17 @@ def init
end
def generate_header_list
- puts "generate_header_list"
headers = Registry.all(:header)
headers_ordered_by_name = headers.sort {|x,y| x.value.to_s <=> y.value.to_s }
generate_full_list headers_ordered_by_name, :headers
end
+def generate_function_list
+ functions = Registry.all(:function)
+ functions_ordered_by_name = functions.sort {|x,y| x.name.to_s <=> y.name.to_s }
+ generate_full_list functions_ordered_by_name, :functions
+end
+
# Helpler method to generate a full_list page of the specified objects with the
# specified type.
def generate_full_list(objects,type,options = {})