From c7ce90204f24b93c807ab3ccc3fbb82397be07d0 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Fri, 22 Oct 2021 17:19:12 +0200 Subject: [PATCH] Update Bootstrap documentation (5.1) --- lib/docs/filters/bootstrap/entries_v5.rb | 2 +- lib/docs/scrapers/bootstrap.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/bootstrap/entries_v5.rb b/lib/docs/filters/bootstrap/entries_v5.rb index 27ba2f7e..461b806b 100644 --- a/lib/docs/filters/bootstrap/entries_v5.rb +++ b/lib/docs/filters/bootstrap/entries_v5.rb @@ -20,7 +20,7 @@ module Docs entries = [] # titles - css('h2', 'h3').each do |node| + css('h2:not(.accordion-header)', 'h3').each do |node| entries << [ name + ': ' + node.content, node['id']] end diff --git a/lib/docs/scrapers/bootstrap.rb b/lib/docs/scrapers/bootstrap.rb index 92be9d1d..ace019d9 100644 --- a/lib/docs/scrapers/bootstrap.rb +++ b/lib/docs/scrapers/bootstrap.rb @@ -17,7 +17,7 @@ module Docs HTML version '5' do - self.release = '5.0' + self.release = '5.1' self.base_url = "https://getbootstrap.com/docs/#{self.release}/" self.root_path = 'getting-started/introduction/'