History

Fix Bootstrap scraper get_latest_version

Phil Scherer committed 5 years ago

Commit 429f9e71 parent 23a00041 file · +2 −2Browse files

Unified · Split

lib/docs/scrapers/bootstrap.rb+2−2
@@ -37,8 +37,8 @@ module Docs · 36 unmodified lines
37 end37 end
38 38
39 def get_latest_version(opts)39 def get_latest_version(opts)
40 doc = fetch_doc('https://getbootstrap.com/', opts)40 doc = fetch_doc('https://getbootstrap.com/docs/versions/', opts)
41 doc.at_css('#bd-versions').content.strip[1..-1]41 doc.at_css('span:contains("Latest")').parent.content.split(' ').first
42 end42 end
43 end43 end
44end44end