diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 1b10d0b9..54fc976b 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -472,7 +472,7 @@ credits = [ 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE' ], [ 'Webpack', - '2012-2015 Tobias Koppers', + '2012-2016 Tobias Koppers', 'MIT', 'https://raw.githubusercontent.com/webpack/webpack/master/LICENSE' ], [ diff --git a/assets/javascripts/views/pages/javascript.coffee b/assets/javascripts/views/pages/javascript.coffee index 6f75720b..0dd9e0f8 100644 --- a/assets/javascripts/views/pages/javascript.coffee +++ b/assets/javascripts/views/pages/javascript.coffee @@ -27,7 +27,6 @@ app.views.MongoosePage = app.views.NodePage = app.views.PhaserPage = app.views.SinonPage = -app.views.WebpackPage = app.views.JavascriptPage app.views.DojoPage = diff --git a/assets/javascripts/views/pages/simple.coffee b/assets/javascripts/views/pages/simple.coffee index ec3d0c0d..f0ffc82c 100644 --- a/assets/javascripts/views/pages/simple.coffee +++ b/assets/javascripts/views/pages/simple.coffee @@ -17,4 +17,5 @@ app.views.RethinkdbPage = app.views.TensorflowPage = app.views.TypescriptPage = app.views.UnderscorePage = +app.views.WebpackPage = app.views.SimplePage diff --git a/lib/docs/filters/webpack/clean_html.rb b/lib/docs/filters/webpack/clean_html.rb index a9a6c6f7..05ed77d3 100644 --- a/lib/docs/filters/webpack/clean_html.rb +++ b/lib/docs/filters/webpack/clean_html.rb @@ -18,8 +18,12 @@ module Docs def other + css('h1, h2, h3, h4').each do |node| + node.name = node.name.sub(/\d/) { |i| i.to_i + 1 } + end + # Re-create the header element - at_css("#wiki").child.before("

#{at_css("#wikititle").content}

") + at_css("#wiki").child.before("

#{at_css("#wikititle").content.titleize}

") @doc = at_css("#wiki") @@ -27,6 +31,7 @@ module Docs css('pre').each do |node| node.content = node.content + node['data-language'] = 'javascript' end end end diff --git a/lib/docs/scrapers/webpack.rb b/lib/docs/scrapers/webpack.rb index 3bb2c79a..78f3f4d9 100644 --- a/lib/docs/scrapers/webpack.rb +++ b/lib/docs/scrapers/webpack.rb @@ -2,7 +2,7 @@ module Docs class Webpack < UrlScraper self.name = 'webpack' self.type = 'webpack' - self.release = '1.12' + self.release = '1.13' self.base_url = 'https://webpack.github.io/docs/' self.links = { home: 'https://webpack.github.io/', @@ -17,7 +17,7 @@ module Docs options[:skip] = %w(list-of-tutorials.html examples.html changelog.html ideas.html roadmap.html) options[:attribution] = <<-HTML - © 2012–2015 Tobias Koppers
+ © 2012–2016 Tobias Koppers
Licensed under the MIT License. HTML end