1
0

liquid.rb 729 B

12345678910111213141516171819202122232425262728
  1. module Docs
  2. class Liquid < UrlScraper
  3. self.name = 'Liquid'
  4. self.type = 'liquid'
  5. self.base_url = 'https://shopify.github.io/liquid/'
  6. self.release = '4.0.0'
  7. self.links = {
  8. home: 'https://shopify.github.io/liquid/',
  9. code: 'https://github.com/Shopify/liquid'
  10. }
  11. html_filters.push 'liquid/entries', 'liquid/clean_html', 'title'
  12. options[:title] = false
  13. options[:root_title] = 'Liquid'
  14. options[:trailing_slash] = true
  15. options[:attribution] = <<-HTML
  16. &copy; 2005, 2006 Tobias Luetke<br>
  17. Licensed under the MIT License.
  18. HTML
  19. def get_latest_version(opts)
  20. tags = get_github_tags('Shopify', 'liquid', opts)
  21. tags[0]['name'][1..-1]
  22. end
  23. end
  24. end