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
19 return [] if type == 'Guides'19 return [] if type == 'Guides'
20 20
21 css('h3').map do |node|21 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']]
23 end23 end
24 end24 end
25 end25 end