Update Express.js documentation (4.10.0)

pull/130/head
Thibaut 10 years ago
parent a90077cdf1
commit 79e876a82b

@ -2,6 +2,8 @@ module Docs
class Express
class CleanHtmlFilter < Filter
def call
at_css('h1').remove
css('section').each do |node|
node.before(node.children).remove
end
@ -12,6 +14,10 @@ module Docs
node.remove
end
css('table[border]').each do |node|
node.remove_attribute 'border'
end
# Remove code highlighting
css('pre').each do |node|
node.content = node.content

@ -2,13 +2,13 @@ module Docs
class Express < UrlScraper
self.name = 'Express'
self.type = 'express'
self.version = '4.9.7'
self.version = '4.10.0'
self.base_url = 'http://expressjs.com/4x/api.html'
html_filters.push 'express/clean_html', 'express/entries', 'title'
options[:title] = 'Express'
options[:container] = '#right'
options[:container] = '#api-doc'
options[:skip_links] = true
options[:attribution] = <<-HTML

Loading…
Cancel
Save