Improve Underscore.js entry names

This commit is contained in:
Thibaut 2015-07-26 13:01:49 -04:00
parent 2b4ae8295a
commit 98c61d8e2d

View file

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