History

Update webpack documentation (2.6.1, 1.15.0)

Thibaut Courouble committed 9 years ago

Commit 102d10d1 parent b3d1c382 files · +11 −1Browse files

Unified · Split

2 files
  1. lib/docs/filters/webpack/clean_html.rb +10 −0
  2. lib/docs/scrapers/webpack.rb +1 −1
lib/docs/filters/webpack/clean_html.rb+10−0
@@ -29,6 +29,16 @@ module Docs · 28 unmodified lines
2929 node.content = node.content.remove(' (click to show)')
3030 end
3131
32+ css('.table-wrap').each do |node|
33+ css('.table-td-title').remove
34+ css('.table-th').each { |n| n.name = 'th' }
35+ css('.table-td').each { |n| n.name = 'td' }
36+ css('.table-tr').each { |n| n.name = 'tr' }
37+ css('.table-body').each { |n| n.name = 'tbody' }
38+ css('.table-header').each { |n| n.name = 'thead' }
39+ node.name = 'table'
40+ end
41+
3242 css('pre > code').each do |node|
3343 node.parent['data-language'] = node['class'][/lang-(\w+)/, 1].sub('jsx', 'js') if node['class']
3444 node.parent.content = node.parent.content
lib/docs/scrapers/webpack.rb+1−1
@@ -4,7 +4,7 @@ module Docs · 3 unmodified lines
44 self.type = 'webpack'
55
66 version '2' do
7− self.release = '2.5.1'
7+ self.release = '2.6.1'
88 self.base_url = 'https://webpack.js.org/'
99 self.root_path = 'guides/get-started/'
1010 self.initial_paths = %w(