|
|
@ -1,7 +1,6 @@
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class Jekyll < UrlScraper
|
|
|
|
class Jekyll < UrlScraper
|
|
|
|
self.type = 'jekyll'
|
|
|
|
self.type = 'jekyll'
|
|
|
|
self.release = '4.1.1'
|
|
|
|
|
|
|
|
self.base_url = 'https://jekyllrb.com/docs/'
|
|
|
|
self.base_url = 'https://jekyllrb.com/docs/'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.links = {
|
|
|
|
self.links = {
|
|
|
@ -28,6 +27,14 @@ module Docs
|
|
|
|
Licensed under the MIT license.
|
|
|
|
Licensed under the MIT license.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '4' do
|
|
|
|
|
|
|
|
self.release = '4.1.1'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
version '3' do
|
|
|
|
|
|
|
|
self.release = '3.7.2'
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
def get_latest_version(opts)
|
|
|
|
doc = fetch_doc('https://jekyllrb.com/docs/', opts)
|
|
|
|
doc = fetch_doc('https://jekyllrb.com/docs/', opts)
|
|
|
|
doc.at_css('.meta a').content[1..-1]
|
|
|
|
doc.at_css('.meta a').content[1..-1]
|
|
|
|