From 0e31f46d7d8a4c7aceeac820082be23ad052855b Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 23 Apr 2017 10:58:47 -0400 Subject: [PATCH] Update webpack documentation (2.3.3, 1.15.0) --- assets/javascripts/templates/pages/about_tmpl.coffee | 2 +- lib/docs/filters/webpack/clean_html_old.rb | 7 +++++-- lib/docs/scrapers/webpack.rb | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 08c77e1c..f22c9723 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -595,7 +595,7 @@ credits = [ 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE' ], [ 'webpack', - '2012-2016 Tobias Koppers', + 'JS Foundation and other contributors', 'CC BY', 'https://creativecommons.org/licenses/by/4.0/' ], [ diff --git a/lib/docs/filters/webpack/clean_html_old.rb b/lib/docs/filters/webpack/clean_html_old.rb index 424bbd05..d8e87b44 100644 --- a/lib/docs/filters/webpack/clean_html_old.rb +++ b/lib/docs/filters/webpack/clean_html_old.rb @@ -9,13 +9,16 @@ module Docs def root @doc = at_css(".container > .row > .col-md-9") - # Remove all introdcution before the hr, + # Remove all introduction before the hr, # The introduction about the documentation site which isn't relevant # in devdocs. hr_index = doc.children.find_index { |node| node.name == "hr" } doc.children[0..hr_index].each(&:remove) - end + css('.row', '.col-md-6', '.feature').each do |node| + node.before(node.children).remove + end + end def other css('h1, h2, h3, h4').each do |node| diff --git a/lib/docs/scrapers/webpack.rb b/lib/docs/scrapers/webpack.rb index 449dd0f5..42e58049 100644 --- a/lib/docs/scrapers/webpack.rb +++ b/lib/docs/scrapers/webpack.rb @@ -34,7 +34,7 @@ module Docs ] options[:attribution] = <<-HTML - © 2012–2016 Tobias Koppers
+ © JS Foundation and other contributors
Licensed under the Creative Commons Attribution License 4.0. HTML @@ -49,11 +49,11 @@ module Docs end version '1' do - self.release = '1.13.2' + self.release = '1.15.0' self.base_url = 'https://webpack.github.io/docs/' self.links = { home: 'https://webpack.github.io/', - code: 'https://github.com/webpack/webpack' + code: 'https://github.com/webpack/webpack/tree/webpack-1' } html_filters.push 'webpack/entries_old', 'webpack/clean_html_old', 'title' @@ -64,7 +64,7 @@ module Docs options[:skip] = %w(list-of-tutorials.html examples.html changelog.html ideas.html roadmap.html) options[:attribution] = <<-HTML - © 2012–2016 Tobias Koppers
+ © 2012–2015 Tobias Koppers
Licensed under the MIT License. HTML end