Unified · Split
| @@ -472,7 +472,7 @@ credits = [ · 471 unmodified lines | |||
| 472 | 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE' | 472 | 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE' |
| 473 | ], [ | 473 | ], [ |
| 474 | 'Webpack', | 474 | 'Webpack', |
| 475 | '2012-2015 Tobias Koppers', | 475 | '2012-2016 Tobias Koppers', |
| 476 | 'MIT', | 476 | 'MIT', |
| 477 | 'https://raw.githubusercontent.com/webpack/webpack/master/LICENSE' | 477 | 'https://raw.githubusercontent.com/webpack/webpack/master/LICENSE' |
| 478 | ], [ | 478 | ], [ |
| @@ -27,7 +27,6 @@ app.views.MongoosePage = · 26 unmodified lines | |||
| 27 | app.views.NodePage = | 27 | app.views.NodePage = |
| 28 | app.views.PhaserPage = | 28 | app.views.PhaserPage = |
| 29 | app.views.SinonPage = | 29 | app.views.SinonPage = |
| 30 | app.views.WebpackPage = | ||
| 31 | app.views.JavascriptPage | 30 | app.views.JavascriptPage |
| 32 | 31 | ||
| 33 | app.views.DojoPage = | 32 | app.views.DojoPage = |
| @@ -17,4 +17,5 @@ app.views.RethinkdbPage = · 16 unmodified lines | |||
| 17 | app.views.TensorflowPage = | 17 | app.views.TensorflowPage = |
| 18 | app.views.TypescriptPage = | 18 | app.views.TypescriptPage = |
| 19 | app.views.UnderscorePage = | 19 | app.views.UnderscorePage = |
| 20 | app.views.WebpackPage = | ||
| 20 | app.views.SimplePage | 21 | app.views.SimplePage |
| @@ -18,8 +18,12 @@ module Docs · 17 unmodified lines | |||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | def other | 20 | def other |
| 21 | css('h1, h2, h3, h4').each do |node| | ||
| 22 | node.name = node.name.sub(/\d/) { |i| i.to_i + 1 } | ||
| 23 | end | ||
| 24 | |||
| 21 | # Re-create the header element | 25 | # Re-create the header element |
| 22 | at_css("#wiki").child.before("<h1>#{at_css("#wikititle").content}</h1>") | 26 | at_css("#wiki").child.before("<h1>#{at_css("#wikititle").content.titleize}</h1>") |
| 23 | 27 | ||
| 24 | @doc = at_css("#wiki") | 28 | @doc = at_css("#wiki") |
| 25 | 29 | ||
| @@ -27,6 +31,7 @@ module Docs · 1 unmodified line | |||
| 27 | 31 | ||
| 28 | css('pre').each do |node| | 32 | css('pre').each do |node| |
| 29 | node.content = node.content | 33 | node.content = node.content |
| 34 | node['data-language'] = 'javascript' | ||
| 30 | end | 35 | end |
| 31 | end | 36 | end |
| 32 | end | 37 | end |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Webpack < UrlScraper | 2 | class Webpack < UrlScraper |
| 3 | self.name = 'webpack' | 3 | self.name = 'webpack' |
| 4 | self.type = 'webpack' | 4 | self.type = 'webpack' |
| 5 | self.release = '1.12' | 5 | self.release = '1.13' |
| 6 | self.base_url = 'https://webpack.github.io/docs/' | 6 | self.base_url = 'https://webpack.github.io/docs/' |
| 7 | self.links = { | 7 | self.links = { |
| 8 | home: 'https://webpack.github.io/', | 8 | home: 'https://webpack.github.io/', |
| @@ -17,7 +17,7 @@ module Docs · 8 unmodified lines | |||
| 17 | options[:skip] = %w(list-of-tutorials.html examples.html changelog.html ideas.html roadmap.html) | 17 | options[:skip] = %w(list-of-tutorials.html examples.html changelog.html ideas.html roadmap.html) |
| 18 | 18 | ||
| 19 | options[:attribution] = <<-HTML | 19 | options[:attribution] = <<-HTML |
| 20 | © 2012–2015 Tobias Koppers<br> | 20 | © 2012–2016 Tobias Koppers<br> |
| 21 | Licensed under the MIT License. | 21 | Licensed under the MIT License. |
| 22 | HTML | 22 | HTML |
| 23 | end | 23 | end |