Showing the changes to lib (2 of 2 files). Show all
Unified · Split
| @@ -7,8 +7,10 @@ module Docs · 6 unmodified lines | |||
| 7 | doc.children.each_with_object [] do |node, entries| | 7 | doc.children.each_with_object [] do |node, entries| |
| 8 | if node.name == 'h2' | 8 | if node.name == 'h2' |
| 9 | type = node.content | 9 | type = node.content |
| 10 | entries << [type, node['id'], 'Application'] if type == 'Middleware' | ||
| 10 | next | 11 | next |
| 11 | elsif node.name == 'h3' | 12 | elsif node.name == 'h3' |
| 13 | next if type == 'Middleware' | ||
| 12 | name = node.content.strip | 14 | name = node.content.strip |
| 13 | name.sub! %r{\(.+\)}, '()' | 15 | name.sub! %r{\(.+\)}, '()' |
| 14 | 16 | ||
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Express < UrlScraper | 2 | class Express < UrlScraper |
| 3 | self.name = 'Express' | 3 | self.name = 'Express' |
| 4 | self.type = 'express' | 4 | self.type = 'express' |
| 5 | self.version = '4.8.7' | 5 | self.version = '4.8.8' |
| 6 | self.base_url = 'http://expressjs.com/4x/api.html' | 6 | self.base_url = 'http://expressjs.com/4x/api.html' |
| 7 | 7 | ||
| 8 | html_filters.push 'express/clean_html', 'express/entries', 'title' | 8 | html_filters.push 'express/clean_html', 'express/entries', 'title' |