Update Bootstrap documentation (alpha.6, 3.3.7)

pull/570/head
Thibaut Courouble 8 years ago
parent 1981b50204
commit 3a6fcdf0b3

@ -111,7 +111,7 @@ credits = [
'https://raw.githubusercontent.com/jashkenas/backbone/master/LICENSE' 'https://raw.githubusercontent.com/jashkenas/backbone/master/LICENSE'
], [ ], [
'Bootstrap', 'Bootstrap',
'2011-2016 Twitter, Inc.', '2011-2017 Twitter, Inc.<br>2011-2017 The Bootstrap Authors',
'CC BY', 'CC BY',
'https://creativecommons.org/licenses/by/3.0/' 'https://creativecommons.org/licenses/by/3.0/'
], [ ], [

@ -12,7 +12,7 @@ module Docs
node.parent.remove node.parent.remove
end end
css('.bd-example-row', '.table-responsive').each do |node| css('.bd-example-row', '.bd-example-border-utils').each do |node|
node.before(node.children).remove node.before(node.children).remove
end end

@ -30,7 +30,7 @@ module Docs
entries << [name, id] entries << [name, id]
end end
css("#options + p + div tbody td:first-child").each do |node| css("#options + p + table tbody td:first-child").each do |node|
name = node.content.strip name = node.content.strip
id = node.parent['id'] = "#{name.parameterize}-option" id = node.parent['id'] = "#{name.parameterize}-option"
name.prepend "#{self.name}: " name.prepend "#{self.name}: "
@ -40,7 +40,9 @@ module Docs
css("#methods + table tbody td:first-child, #methods ~ h4 code").each do |node| css("#methods + table tbody td:first-child, #methods ~ h4 code").each do |node|
next unless name = node.content[/\('(\w+)'\)/, 1] next unless name = node.content[/\('(\w+)'\)/, 1]
id = node.parent['id'] = "#{name.parameterize}-method" unless id = node.parent['id']
id = node.parent['id'] = "#{name.parameterize}-method"
end
name.prepend "#{self.name}: " name.prepend "#{self.name}: "
name << ' (method)' name << ' (method)'
entries << [name, id] entries << [name, id]

@ -9,13 +9,14 @@ module Docs
options[:trailing_slash] = false options[:trailing_slash] = false
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2011&ndash;2016 Twitter, Inc.<br> &copy; 2011&ndash;2017 Twitter, Inc.<br>
&copy; 2011&ndash;2017 The Bootstrap Authors<br>
Code licensed under the MIT License.<br> Code licensed under the MIT License.<br>
Documentation licensed under the Creative Commons Attribution License v3.0. Documentation licensed under the Creative Commons Attribution License v3.0.
HTML HTML
version '4' do version '4' do
self.release = 'alpha.5' self.release = 'alpha.6'
self.base_url = 'https://v4-alpha.getbootstrap.com/' self.base_url = 'https://v4-alpha.getbootstrap.com/'
self.root_path = 'getting-started/introduction' self.root_path = 'getting-started/introduction'

Loading…
Cancel
Save