소스 검색

Merge pull request #1412 from scherepn/bootstrap-fix

Fix Bootstrap scraper get_latest_version
Simon Legner 5 년 전
부모
커밋
0961912a33
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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