1
0

pony.rb 735 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Pony < UrlScraper
  3. self.type = 'simple'
  4. self.release = '0.30.0'
  5. self.base_url = 'https://stdlib.ponylang.io/'
  6. self.links = {
  7. home: 'https://www.ponylang.io/',
  8. code: 'https://github.com/ponylang/ponyc'
  9. }
  10. html_filters.push 'pony/clean_html', 'pony/entries'
  11. options[:attribution] = <<-HTML
  12. &copy; 2016-2018, The Pony Developers<br>
  13. &copy; 2014-2015, Causality Ltd.<br>
  14. Licensed under the BSD 2-Clause License.
  15. HTML
  16. options[:container] = 'article'
  17. options[:trailing_slash] = false
  18. options[:skip_patterns] = [/src/, /stdlib--index/]
  19. def get_latest_version(opts)
  20. get_latest_github_release('ponylang', 'ponyc', opts)
  21. end
  22. end
  23. end