History

phpunit: fix entry anchor

Simon Legner committed 9 months ago

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

Showing the changes to lib/docs (1 of 1 file). Show all

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t