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
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_element29 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 end33 end
33 end34 end
34 35
lib/docs/scrapers/bootstrap.rb+2−2
@@ -17,8 +17,8 @@ module Docs · 16 unmodified lines
17 HTML17 HTML
18 18
19 version '4' do19 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'
public/icons/docs/bootstrap/SOURCE+1−1
@@ -1 +1 @@
1https://raw.githubusercontent.com/twbs/bootstrap/master/docs/favicon.ico1https://raw.githubusercontent.com/twbs/bootstrap/gh-pages/favicon.ico