[devdocsgjs/main: 1226/1867] bootstrap: update release 4.5
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1226/1867] bootstrap: update release 4.5
- Date: Fri, 19 Nov 2021 23:47:50 +0000 (UTC)
commit 852503ab4147f3dbd077c5a2c069be03a5f767b7
Author: Simon Legner <Simon Legner gmail com>
Date: Wed Nov 18 23:40:36 2020 +0100
bootstrap: update release 4.5
lib/docs/filters/bootstrap/clean_html_v4.rb | 5 +++--
lib/docs/scrapers/bootstrap.rb | 4 ++--
public/icons/docs/bootstrap/SOURCE | 2 +-
3 files changed, 6 insertions(+), 5 deletions(-)
---
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 = %(<a href="#{current_url}##{prev['id']}">Open example on getbootstrap.com</a>)
+ prev = prev.previous_element until !prev || prev['id']
+ anchor = prev ? %(##{prev['id']}) : ''
+ node.inner_html = %(<a href="#{current_url}#{anchor}">Open example on getbootstrap.com</a>)
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]