1
0

sass.rb 791 B

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