mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
729 B
29 lines
729 B
module Docs
|
|
class Liquid < UrlScraper
|
|
self.name = 'Liquid'
|
|
self.type = 'liquid'
|
|
self.base_url = 'https://shopify.github.io/liquid/'
|
|
self.release = '4.0.0'
|
|
self.links = {
|
|
home: 'https://shopify.github.io/liquid/',
|
|
code: 'https://github.com/Shopify/liquid'
|
|
}
|
|
|
|
html_filters.push 'liquid/entries', 'liquid/clean_html', 'title'
|
|
|
|
options[:title] = false
|
|
options[:root_title] = 'Liquid'
|
|
options[:trailing_slash] = true
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2005, 2006 Tobias Luetke<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
tags = get_github_tags('Shopify', 'liquid', opts)
|
|
tags[0]['name'][1..-1]
|
|
end
|
|
end
|
|
end
|