Update webpack documentation (2.3.3, 1.15.0)

pull/602/merge
Thibaut Courouble 8 years ago
parent 8cd5a74e1a
commit 0e31f46d7d

@ -595,7 +595,7 @@ credits = [
'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE' 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE'
], [ ], [
'webpack', 'webpack',
'2012-2016 Tobias Koppers', 'JS Foundation and other contributors',
'CC BY', 'CC BY',
'https://creativecommons.org/licenses/by/4.0/' 'https://creativecommons.org/licenses/by/4.0/'
], [ ], [

@ -9,13 +9,16 @@ module Docs
def root def root
@doc = at_css(".container > .row > .col-md-9") @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 # The introduction about the documentation site which isn't relevant
# in devdocs. # in devdocs.
hr_index = doc.children.find_index { |node| node.name == "hr" } hr_index = doc.children.find_index { |node| node.name == "hr" }
doc.children[0..hr_index].each(&:remove) 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 def other
css('h1, h2, h3, h4').each do |node| css('h1, h2, h3, h4').each do |node|

@ -34,7 +34,7 @@ module Docs
] ]
options[:attribution] = <<-HTML 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. Licensed under the Creative Commons Attribution License 4.0.
HTML HTML
@ -49,11 +49,11 @@ module Docs
end end
version '1' do version '1' do
self.release = '1.13.2' self.release = '1.15.0'
self.base_url = 'https://webpack.github.io/docs/' self.base_url = 'https://webpack.github.io/docs/'
self.links = { self.links = {
home: 'https://webpack.github.io/', 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' 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[:skip] = %w(list-of-tutorials.html examples.html changelog.html ideas.html roadmap.html)
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2012&ndash;2016 Tobias Koppers<br> &copy; 2012&ndash;2015 Tobias Koppers<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML
end end

Loading…
Cancel
Save