History

Merge pull request #1344 from simon04/bootstrap-4.5

Simon Legner committed 5 years ago

Commit 35d7bcd2 parents eda5319 852503a3 files · +6 −5Browse files

Unified · Split

3 files
  1. lib/docs/filters/bootstrap/clean_html_v4.rb +3 −2
  2. lib/docs/scrapers/bootstrap.rb +2 −2
  3. public/icons/docs/bootstrap/SOURCE +1 −1
lib/docs/filters/bootstrap/clean_html_v4.rb+3−2
@@ -27,8 +27,9 @@ module Docs · 26 unmodified lines
2727 node['class'] = 'bd-example'
2828 node.remove_attribute('data-example-id')
2929 prev = node.previous_element
30− prev = prev.previous_element until prev['id']
31− node.inner_html = %(<a href="#{current_url}##{prev['id']}">Open example on getbootstrap.com</a>)
30+ prev = prev.previous_element until !prev || prev['id']
31+ anchor = prev ? %(##{prev['id']}) : ''
32+ node.inner_html = %(<a href="#{current_url}#{anchor}">Open example on getbootstrap.com</a>)
3233 end
3334 end
3435
lib/docs/scrapers/bootstrap.rb+2−2
@@ -17,8 +17,8 @@ module Docs · 16 unmodified lines
1717 HTML
1818
1919 version '4' do
20− self.release = '4.4.1'
21− self.base_url = 'https://getbootstrap.com/docs/4.4/'
20+ self.release = '4.5'
21+ self.base_url = 'https://getbootstrap.com/docs/4.5/'
2222 self.root_path = 'getting-started/introduction/'
2323
2424 html_filters.push 'bootstrap/entries_v4', 'bootstrap/clean_html_v4'
public/icons/docs/bootstrap/SOURCE+1−1
@@ -1 +1 @@
1−https://raw.githubusercontent.com/twbs/bootstrap/master/docs/favicon.ico
1+https://raw.githubusercontent.com/twbs/bootstrap/gh-pages/favicon.ico