templates/default/fulldoc/markdown/setup.rb in yard-markdown-0.3.2 vs templates/default/fulldoc/markdown/setup.rb in yard-markdown-0.3.4

- old
+ new

@@ -40,13 +40,13 @@ objects.each do |object| next if object.name == :root if object.type == :class - csv << [object.name, "Class", options.serializer.serialized_path(object)] + csv << [object.path, "Class", options.serializer.serialized_path(object)] elsif object.type == :module - csv << [object.name, "Module", options.serializer.serialized_path(object)] + csv << [object.path, "Module", options.serializer.serialized_path(object)] end if constant_listing.size.positive? constant_listing.each do |cnst| csv << [ @@ -99,10 +99,10 @@ <% end %><% [[:class, "Extended by"], [:instance, "Includes"]].each do |scope, name| %> <% if (mix = run_verifier(object.mixins(scope))).size > 0 %> **<%= name %>:** <%= mix.sort_by {|o| o.path }.join(", ") %> <% end %><% end %> <% unless object.root? %> -**Defined in:** <%= object.file ? object.file : "(unknown)" %> +**Defined in:** <%= object.file ? object.file.sub(Dir.pwd, '') : "(unknown)" %> <% end %> <%= rdoc_to_md object.docstring %> <% if (insmeths = public_instance_methods(object)).size > 0 %>