Skip to content

Commit

Permalink
Merge pull request #354 from jonathanhefner/breadcrumbs-fix-parent-li…
Browse files Browse the repository at this point in the history
…nks-for-classes

Fix `module_breadcrumbs` when parent is a class
  • Loading branch information
jonathanhefner authored Jan 4, 2024
2 parents 08b4252 + b420395 commit 8f091a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sdoc/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def module_breadcrumbs(rdoc_module)
parent_names = rdoc_module.full_name.split("::")[0...-1]

crumbs = parent_names.each_with_index.map do |name, i|
parent = rdoc_module.store.find_module_named(parent_names[0..i].join("::"))
parent = rdoc_module.store.find_class_or_module(parent_names[0..i].join("::"))
parent ? link_to(h(name), parent) : h(name)
end

Expand Down

0 comments on commit 8f091a0

Please sign in to comment.