sass.rb 802 B

12345678910111213141516171819202122232425262728293031
  1. module Docs
  2. class Sass < UrlScraper
  3. self.type = 'yard'
  4. self.release = '3.6.4'
  5. self.base_url = 'https://sass-lang.com/documentation'
  6. self.root_path = 'index.html'
  7. self.links = {
  8. home: 'http://sass-lang.com/',
  9. code: 'https://github.com/sass/sass'
  10. }
  11. html_filters.push 'sass/clean_html', 'sass/entries', 'title'
  12. options[:root_title] = false
  13. options[:title] = 'Sass Functions'
  14. options[:skip_patterns] = [/breaking-changes/]
  15. # options[:container] = '#main-content'
  16. options[:attribution] = <<-HTML
  17. &copy; 2006&ndash;2020 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein<br>
  18. Licensed under the MIT License.
  19. HTML
  20. def get_latest_version(opts)
  21. get_latest_github_release('sass', 'libsass', opts)
  22. end
  23. end
  24. end