History

phpunit: fix entry anchor

Simon Legner committed 8 months ago

Commit e110b2c1 parent df37ef01 file · +1 −1Browse files

Unified · Split

lib/docs/filters/phpunit/entries.rb+1−1
@@ -19,7 +19,7 @@ module Docs · 18 unmodified lines
1919 return [] if type == 'Guides'
2020
2121 css('h3').map do |node|
22− [node.content.gsub('The ', ''), node['id']]
22+ [node.content.gsub('The ', ''), node['id'] || node.ancestors('section[id]').first['id']]
2323 end
2424 end
2525 end