History

Update Bootstrap documentation (alpha.6, 3.3.7)

Thibaut Courouble committed 9 years ago

Commit 3a6fcdf1 parent 1981b504 files · +9 −6Browse files

Unified · Split

4 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/bootstrap/clean_html_v4.rb +1 −1
  3. lib/docs/filters/bootstrap/entries_v4.rb +4 −2
  4. lib/docs/scrapers/bootstrap.rb +3 −2
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -111,7 +111,7 @@ credits = [ · 110 unmodified lines
111 'https://raw.githubusercontent.com/jashkenas/backbone/master/LICENSE'111 'https://raw.githubusercontent.com/jashkenas/backbone/master/LICENSE'
112 ], [112 ], [
113 'Bootstrap',113 'Bootstrap',
114 '2011-2016 Twitter, Inc.',114 '2011-2017 Twitter, Inc.<br>2011-2017 The Bootstrap Authors',
115 'CC BY',115 'CC BY',
116 'https://creativecommons.org/licenses/by/3.0/'116 'https://creativecommons.org/licenses/by/3.0/'
117 ], [117 ], [
lib/docs/filters/bootstrap/clean_html_v4.rb+1−1
@@ -12,7 +12,7 @@ module Docs · 11 unmodified lines
12 node.parent.remove12 node.parent.remove
13 end13 end
14 14
15 css('.bd-example-row', '.table-responsive').each do |node|15 css('.bd-example-row', '.bd-example-border-utils').each do |node|
16 node.before(node.children).remove16 node.before(node.children).remove
17 end17 end
18 18
lib/docs/filters/bootstrap/entries_v4.rb+4−2
@@ -30,7 +30,7 @@ module Docs · 29 unmodified lines
30 entries << [name, id]30 entries << [name, id]
31 end31 end
32 32
33 css("#options + p + div tbody td:first-child").each do |node|33 css("#options + p + table tbody td:first-child").each do |node|
34 name = node.content.strip34 name = node.content.strip
35 id = node.parent['id'] = "#{name.parameterize}-option"35 id = node.parent['id'] = "#{name.parameterize}-option"
36 name.prepend "#{self.name}: "36 name.prepend "#{self.name}: "
@@ -40,7 +40,9 @@ module Docs · 3 unmodified lines
40 40
41 css("#methods + table tbody td:first-child, #methods ~ h4 code").each do |node|41 css("#methods + table tbody td:first-child, #methods ~ h4 code").each do |node|
42 next unless name = node.content[/\('(\w+)'\)/, 1]42 next unless name = node.content[/\('(\w+)'\)/, 1]
43 id = node.parent['id'] = "#{name.parameterize}-method"43 unless id = node.parent['id']
44 id = node.parent['id'] = "#{name.parameterize}-method"
45 end
44 name.prepend "#{self.name}: "46 name.prepend "#{self.name}: "
45 name << ' (method)'47 name << ' (method)'
46 entries << [name, id]48 entries << [name, id]
lib/docs/scrapers/bootstrap.rb+3−2
@@ -9,13 +9,14 @@ module Docs · 8 unmodified lines
9 options[:trailing_slash] = false9 options[:trailing_slash] = false
10 10
11 options[:attribution] = <<-HTML11 options[:attribution] = <<-HTML
12 &copy; 2011&ndash;2016 Twitter, Inc.<br>12 &copy; 2011&ndash;2017 Twitter, Inc.<br>
13 &copy; 2011&ndash;2017 The Bootstrap Authors<br>
13 Code licensed under the MIT License.<br>14 Code licensed under the MIT License.<br>
14 Documentation licensed under the Creative Commons Attribution License v3.0.15 Documentation licensed under the Creative Commons Attribution License v3.0.
15 HTML16 HTML
16 17
17 version '4' do18 version '4' do
18 self.release = 'alpha.5'19 self.release = 'alpha.6'
19 self.base_url = 'https://v4-alpha.getbootstrap.com/'20 self.base_url = 'https://v4-alpha.getbootstrap.com/'
20 self.root_path = 'getting-started/introduction'21 self.root_path = 'getting-started/introduction'
21 22