Unified · Split
| @@ -27,8 +27,9 @@ module Docs · 26 unmodified lines | ||
| 27 | 27 | node['class'] = 'bd-example' |
| 28 | 28 | node.remove_attribute('data-example-id') |
| 29 | 29 | 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>) | |
| 32 | 33 | end |
| 33 | 34 | end |
| 34 | 35 | |
| @@ -17,8 +17,8 @@ module Docs · 16 unmodified lines | ||
| 17 | 17 | HTML |
| 18 | 18 | |
| 19 | 19 | 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/' | |
| 22 | 22 | self.root_path = 'getting-started/introduction/' |
| 23 | 23 | |
| 24 | 24 | html_filters.push 'bootstrap/entries_v4', 'bootstrap/clean_html_v4' |
| @@ -1 +1 @@ | ||
| 1 | −https://raw.githubusercontent.com/twbs/bootstrap/master/docs/favicon.ico | |
| 1 | +https://raw.githubusercontent.com/twbs/bootstrap/gh-pages/favicon.ico | |