lib/templates/default/fulldoc/html/setup.rb in yard-cucumber-3.0.0 vs lib/templates/default/fulldoc/html/setup.rb in yard-cucumber-3.1.0

- old
+ new

@@ -109,11 +109,11 @@ # Generate feature list # @note this menu is not automatically added until yard configuration has this menu added # See the layout template method that loads the menus def generate_featuredirectories_list directories_ordered_by_name = root_feature_directories.sort {|x,y| x.value.to_s <=> y.value.to_s } - generate_full_list directories_ordered_by_name, :featuredirectories, + generate_full_list directories_ordered_by_name, :featuredirectories, :list_title => "Features by Directory", :list_filename => "featuredirectories_list.html" end @@ -141,11 +141,11 @@ # tags, etc.) as it is a meta-object. # # This method removes the namespace from the root node, generates the class list, # and then adds it back into the root node. # -def class_list(root = Registry.root) +def class_list(root = Registry.root, tree = TreeContext.new) return super unless root == Registry.root cucumber_namespace = YARD::CodeObjects::Cucumber::CUCUMBER_NAMESPACE root.instance_eval { children.delete cucumber_namespace } out = super(root) @@ -167,9 +167,20 @@ else linkify root_feature_directories.first, "All Features" end end -def directory_node(directory) +# +# This method is used to generate a feature directory. This template may call +# this method as well to generate any child feature directories as well. +# +# @param directory [FeatureDirectory] this is the FeatureDirectory to display +# @param padding [Fixnum] this is the pixel value to ident as we want to keep +# pushing in the padding to show the parent relationship +# @param row [String] 'odd' or 'even' to correctly color the row +# +def directory_node(directory,padding,row) @directory = directory + @padding = padding + @row = row erb(:directories) end