sass.rb 723 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Sass < UrlScraper
  3. self.type = 'yard'
  4. self.version = '3.2.12'
  5. self.base_url = 'http://sass-lang.com/docs/yardoc/'
  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[:container] = ->(filter) do
  10. filter.root_page? ? '#filecontents' : '#instance_method_details'
  11. end
  12. options[:title] = ->(filter) do
  13. 'Sass Functions' if filter.slug == 'Sass/Script/Functions'
  14. end
  15. options[:attribution] = <<-HTML
  16. &copy; 2006&ndash;2013 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein<br>
  17. Licensed under the MIT License.
  18. HTML
  19. end
  20. end