Unified · Split
| @@ -2,6 +2,8 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Express |
| 3 | 3 | class CleanHtmlFilter < Filter |
| 4 | 4 | def call |
| 5 | + at_css('h1').remove | |
| 6 | + | |
| 5 | 7 | css('section').each do |node| |
| 6 | 8 | node.before(node.children).remove |
| 7 | 9 | end |
| @@ -12,6 +14,10 @@ module Docs · 4 unmodified lines | ||
| 12 | 14 | node.remove |
| 13 | 15 | end |
| 14 | 16 | |
| 17 | + css('table[border]').each do |node| | |
| 18 | + node.remove_attribute 'border' | |
| 19 | + end | |
| 20 | + | |
| 15 | 21 | # Remove code highlighting |
| 16 | 22 | css('pre').each do |node| |
| 17 | 23 | node.content = node.content |
| @@ -2,13 +2,13 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Express < UrlScraper |
| 3 | 3 | self.name = 'Express' |
| 4 | 4 | self.type = 'express' |
| 5 | − self.version = '4.9.7' | |
| 5 | + self.version = '4.10.0' | |
| 6 | 6 | self.base_url = 'http://expressjs.com/4x/api.html' |
| 7 | 7 | |
| 8 | 8 | html_filters.push 'express/clean_html', 'express/entries', 'title' |
| 9 | 9 | |
| 10 | 10 | options[:title] = 'Express' |
| 11 | − options[:container] = '#right' | |
| 11 | + options[:container] = '#api-doc' | |
| 12 | 12 | options[:skip_links] = true |
| 13 | 13 | |
| 14 | 14 | options[:attribution] = <<-HTML |