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
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

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