diff --git a/lib/docs/filters/bootstrap/clean_html_v4.rb b/lib/docs/filters/bootstrap/clean_html_v4.rb
index 2e46c159..6a94e20e 100644
--- a/lib/docs/filters/bootstrap/clean_html_v4.rb
+++ b/lib/docs/filters/bootstrap/clean_html_v4.rb
@@ -27,8 +27,9 @@ module Docs
node['class'] = 'bd-example'
node.remove_attribute('data-example-id')
prev = node.previous_element
- prev = prev.previous_element until prev['id']
- node.inner_html = %(Open example on getbootstrap.com)
+ prev = prev.previous_element until !prev || prev['id']
+ anchor = prev ? %(##{prev['id']}) : ''
+ node.inner_html = %(Open example on getbootstrap.com)
end
end
diff --git a/lib/docs/scrapers/bootstrap.rb b/lib/docs/scrapers/bootstrap.rb
index 140c9f75..a5ce71dd 100644
--- a/lib/docs/scrapers/bootstrap.rb
+++ b/lib/docs/scrapers/bootstrap.rb
@@ -17,8 +17,8 @@ module Docs
HTML
version '4' do
- self.release = '4.4.1'
- self.base_url = 'https://getbootstrap.com/docs/4.4/'
+ self.release = '4.5'
+ self.base_url = 'https://getbootstrap.com/docs/4.5/'
self.root_path = 'getting-started/introduction/'
html_filters.push 'bootstrap/entries_v4', 'bootstrap/clean_html_v4'
diff --git a/public/icons/docs/bootstrap/SOURCE b/public/icons/docs/bootstrap/SOURCE
index 936a54e3..3a199b8a 100644
--- a/public/icons/docs/bootstrap/SOURCE
+++ b/public/icons/docs/bootstrap/SOURCE
@@ -1 +1 @@
-https://raw.githubusercontent.com/twbs/bootstrap/master/docs/favicon.ico
+https://raw.githubusercontent.com/twbs/bootstrap/gh-pages/favicon.ico