jekyll: retain version 3 docs

pull/1335/head
Simon Legner 4 years ago
parent e0100dd133
commit 19d0131a17

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

Loading…
Cancel
Save