mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
723 B
26 lines
723 B
module Docs
|
|
class Sass < UrlScraper
|
|
self.type = 'yard'
|
|
self.version = '3.2.12'
|
|
self.base_url = 'http://sass-lang.com/docs/yardoc/'
|
|
self.root_path = 'file.SASS_REFERENCE.html'
|
|
|
|
html_filters.push 'sass/clean_html', 'sass/entries', 'title'
|
|
|
|
options[:only] = %w(Sass/Script/Functions.html)
|
|
|
|
options[:container] = ->(filter) do
|
|
filter.root_page? ? '#filecontents' : '#instance_method_details'
|
|
end
|
|
|
|
options[:title] = ->(filter) do
|
|
'Sass Functions' if filter.slug == 'Sass/Script/Functions'
|
|
end
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2006–2013 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
end
|
|
end
|