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
29 node.content = node.content.remove(' (click to show)')29 node.content = node.content.remove(' (click to show)')
30 end30 end
31 31
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
32 css('pre > code').each do |node|42 css('pre > code').each do |node|
33 node.parent['data-language'] = node['class'][/lang-(\w+)/, 1].sub('jsx', 'js') if node['class']43 node.parent['data-language'] = node['class'][/lang-(\w+)/, 1].sub('jsx', 'js') if node['class']
34 node.parent.content = node.parent.content44 node.parent.content = node.parent.content
lib/docs/scrapers/webpack.rb+1−1
@@ -4,7 +4,7 @@ module Docs · 3 unmodified lines
4 self.type = 'webpack'4 self.type = 'webpack'
5 5
6 version '2' do6 version '2' do
7 self.release = '2.5.1'7 self.release = '2.6.1'
8 self.base_url = 'https://webpack.js.org/'8 self.base_url = 'https://webpack.js.org/'
9 self.root_path = 'guides/get-started/'9 self.root_path = 'guides/get-started/'
10 self.initial_paths = %w(10 self.initial_paths = %w(