Browse Source

Merge pull request #1412 from scherepn/bootstrap-fix

Fix Bootstrap scraper get_latest_version
Simon Legner 5 năm trước cách đây
mục cha
commit
0961912a33
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lib/docs/scrapers/bootstrap.rb

+ 2 - 2
lib/docs/scrapers/bootstrap.rb

@@ -37,8 +37,8 @@ module Docs
     end
 
     def get_latest_version(opts)
-      doc = fetch_doc('https://getbootstrap.com/', opts)
-      doc.at_css('#bd-versions').content.strip[1..-1]
+      doc = fetch_doc('https://getbootstrap.com/docs/versions/', opts)
+      doc.at_css('span:contains("Latest")').parent.content.split(' ').first
     end
   end
 end