History

Update Express.js documentation (4.10.0)

Thibaut committed 12 years ago

Commit 79e876a1 parent a90077c2 files · +8 −2Browse files

Unified · Split

2 files
  1. lib/docs/filters/express/clean_html.rb +6 −0
  2. lib/docs/scrapers/express.rb +2 −2
lib/docs/filters/express/clean_html.rb+6−0
@@ -2,6 +2,8 @@ module Docs · 1 unmodified line
22 class Express
33 class CleanHtmlFilter < Filter
44 def call
5+ at_css('h1').remove
6+
57 css('section').each do |node|
68 node.before(node.children).remove
79 end
@@ -12,6 +14,10 @@ module Docs · 4 unmodified lines
1214 node.remove
1315 end
1416
17+ css('table[border]').each do |node|
18+ node.remove_attribute 'border'
19+ end
20+
1521 # Remove code highlighting
1622 css('pre').each do |node|
1723 node.content = node.content
lib/docs/scrapers/express.rb+2−2
@@ -2,13 +2,13 @@ module Docs · 1 unmodified line
22 class Express < UrlScraper
33 self.name = 'Express'
44 self.type = 'express'
5− self.version = '4.9.7'
5+ self.version = '4.10.0'
66 self.base_url = 'http://expressjs.com/4x/api.html'
77
88 html_filters.push 'express/clean_html', 'express/entries', 'title'
99
1010 options[:title] = 'Express'
11− options[:container] = '#right'
11+ options[:container] = '#api-doc'
1212 options[:skip_links] = true
1313
1414 options[:attribution] = <<-HTML