mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-18 10:07:11 +01:00
23 lines
687 B
Ruby
23 lines
687 B
Ruby
module Docs
|
|
class Sass < UrlScraper
|
|
self.type = 'yard'
|
|
self.version = '3.4.11'
|
|
self.base_url = 'http://sass-lang.com/documentation/'
|
|
self.root_path = 'file.SASS_REFERENCE.html'
|
|
|
|
html_filters.push 'sass/clean_html', 'sass/entries', 'title'
|
|
|
|
options[:only] = %w(Sass/Script/Functions.html)
|
|
options[:root_title] = false
|
|
options[:title] = 'Sass Functions'
|
|
|
|
options[:container] = ->(filter) do
|
|
filter.root_page? ? '#filecontents' : '#instance_method_details'
|
|
end
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2006–2015 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
end
|
|
end
|