Unified · Split
| @@ -27,8 +27,9 @@ module Docs · 26 unmodified lines | |||
| 27 | node['class'] = 'bd-example' | 27 | node['class'] = 'bd-example' |
| 28 | node.remove_attribute('data-example-id') | 28 | node.remove_attribute('data-example-id') |
| 29 | prev = node.previous_element | 29 | prev = node.previous_element |
| 30 | prev = prev.previous_element until prev['id'] | 30 | prev = prev.previous_element until !prev || prev['id'] |
| 31 | node.inner_html = %(<a href="#{current_url}##{prev['id']}">Open example on getbootstrap.com</a>) | 31 | anchor = prev ? %(##{prev['id']}) : '' |
| 32 | node.inner_html = %(<a href="#{current_url}#{anchor}">Open example on getbootstrap.com</a>) | ||
| 32 | end | 33 | end |
| 33 | end | 34 | end |
| 34 | 35 | ||
| @@ -17,8 +17,8 @@ module Docs · 16 unmodified lines | |||
| 17 | HTML | 17 | HTML |
| 18 | 18 | ||
| 19 | version '4' do | 19 | version '4' do |
| 20 | self.release = '4.4.1' | 20 | self.release = '4.5' |
| 21 | self.base_url = 'https://getbootstrap.com/docs/4.4/' | 21 | self.base_url = 'https://getbootstrap.com/docs/4.5/' |
| 22 | self.root_path = 'getting-started/introduction/' | 22 | self.root_path = 'getting-started/introduction/' |
| 23 | 23 | ||
| 24 | html_filters.push 'bootstrap/entries_v4', 'bootstrap/clean_html_v4' | 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 |