sass.rb 687 B

1234567891011121314151617181920212223
  1. module Docs
  2. class Sass < UrlScraper
  3. self.type = 'yard'
  4. self.release = '3.4.22'
  5. self.base_url = 'http://sass-lang.com/documentation/'
  6. self.root_path = 'file.SASS_REFERENCE.html'
  7. html_filters.push 'sass/clean_html', 'sass/entries', 'title'
  8. options[:only] = %w(Sass/Script/Functions.html)
  9. options[:root_title] = false
  10. options[:title] = 'Sass Functions'
  11. options[:container] = ->(filter) do
  12. filter.root_page? ? '#filecontents' : '#instance_method_details'
  13. end
  14. options[:attribution] = <<-HTML
  15. &copy; 2006&ndash;2016 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein<br>
  16. Licensed under the MIT License.
  17. HTML
  18. end
  19. end