mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-18 10:07:11 +01:00
Improve Underscore.js entry names
This commit is contained in:
parent
2b4ae8295a
commit
98c61d8e2d
1 changed files with 3 additions and 0 deletions
|
@ -14,7 +14,10 @@ module Docs
|
|||
|
||||
# Method
|
||||
node.css('.header', '.alias b').each do |header|
|
||||
prefix = header.ancestors('p').first.at_css('code').content[/\A[^\.]+\./].strip
|
||||
header.content.split(',').each do |name|
|
||||
name.strip!
|
||||
name.prepend(prefix)
|
||||
entries << [name, node['id'], type]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue