Pārlūkot izejas kodu

Update webpack documentation (2.3.3, 1.15.0)

Thibaut Courouble 8 gadi atpakaļ
vecāks
revīzija
0e31f46d7d

+ 1 - 1
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/'
   ], [

+ 5 - 2
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|

+ 4 - 4
lib/docs/scrapers/webpack.rb

@@ -34,7 +34,7 @@ module Docs
       ]
 
       options[:attribution] = <<-HTML
-        &copy; 2012&ndash;2016 Tobias Koppers<br>
+        &copy; JS Foundation and other contributors<br>
         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
-        &copy; 2012&ndash;2016 Tobias Koppers<br>
+        &copy; 2012&ndash;2015 Tobias Koppers<br>
         Licensed under the MIT License.
       HTML
     end