History

Update webpack documentation (2.3.3, 1.15.0)

Thibaut Courouble committed 9 years ago

Commit 0e31f461 parent 8cd5a743 files · +10 −7Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/webpack/clean_html_old.rb +5 −2
  3. lib/docs/scrapers/webpack.rb +4 −4
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -595,7 +595,7 @@ credits = [ · 594 unmodified lines
595 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE'595 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE'
596 ], [596 ], [
597 'webpack',597 'webpack',
598 '2012-2016 Tobias Koppers',598 'JS Foundation and other contributors',
599 'CC BY',599 'CC BY',
600 'https://creativecommons.org/licenses/by/4.0/'600 'https://creativecommons.org/licenses/by/4.0/'
601 ], [601 ], [
lib/docs/filters/webpack/clean_html_old.rb+5−2
@@ -9,13 +9,16 @@ module Docs · 8 unmodified lines
9 def root9 def root
10 @doc = at_css(".container > .row > .col-md-9")10 @doc = at_css(".container > .row > .col-md-9")
11 11
12 # Remove all introdcution before the hr,12 # Remove all introduction before the hr,
13 # The introduction about the documentation site which isn't relevant13 # The introduction about the documentation site which isn't relevant
14 # in devdocs.14 # in devdocs.
15 hr_index = doc.children.find_index { |node| node.name == "hr" }15 hr_index = doc.children.find_index { |node| node.name == "hr" }
16 doc.children[0..hr_index].each(&:remove)16 doc.children[0..hr_index].each(&:remove)
17 end
18 17
18 css('.row', '.col-md-6', '.feature').each do |node|
19 node.before(node.children).remove
20 end
21 end
19 22
20 def other23 def other
21 css('h1, h2, h3, h4').each do |node|24 css('h1, h2, h3, h4').each do |node|
lib/docs/scrapers/webpack.rb+4−4
@@ -34,7 +34,7 @@ module Docs · 33 unmodified lines
34 ]34 ]
35 35
36 options[:attribution] = <<-HTML36 options[:attribution] = <<-HTML
37 &copy; 2012&ndash;2016 Tobias Koppers<br>37 &copy; JS Foundation and other contributors<br>
38 Licensed under the Creative Commons Attribution License 4.0.38 Licensed under the Creative Commons Attribution License 4.0.
39 HTML39 HTML
40 40
@@ -49,11 +49,11 @@ module Docs · 8 unmodified lines
49 end49 end
50 50
51 version '1' do51 version '1' do
52 self.release = '1.13.2'52 self.release = '1.15.0'
53 self.base_url = 'https://webpack.github.io/docs/'53 self.base_url = 'https://webpack.github.io/docs/'
54 self.links = {54 self.links = {
55 home: 'https://webpack.github.io/',55 home: 'https://webpack.github.io/',
56 code: 'https://github.com/webpack/webpack'56 code: 'https://github.com/webpack/webpack/tree/webpack-1'
57 }57 }
58 58
59 html_filters.push 'webpack/entries_old', 'webpack/clean_html_old', 'title'59 html_filters.push 'webpack/entries_old', 'webpack/clean_html_old', 'title'
@@ -64,7 +64,7 @@ module Docs · 4 unmodified lines
64 options[:skip] = %w(list-of-tutorials.html examples.html changelog.html ideas.html roadmap.html)64 options[:skip] = %w(list-of-tutorials.html examples.html changelog.html ideas.html roadmap.html)
65 65
66 options[:attribution] = <<-HTML66 options[:attribution] = <<-HTML
67 &copy; 2012&ndash;2016 Tobias Koppers<br>67 &copy; 2012&ndash;2015 Tobias Koppers<br>
68 Licensed under the MIT License.68 Licensed under the MIT License.
69 HTML69 HTML
70 end70 end