|
|
@ -1,7 +1,7 @@
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class Sass < UrlScraper
|
|
|
|
class Sass < UrlScraper
|
|
|
|
self.type = 'yard'
|
|
|
|
self.type = 'yard'
|
|
|
|
self.release = '3.6.4'
|
|
|
|
self.release = '1.55.0'
|
|
|
|
self.base_url = 'https://sass-lang.com/documentation'
|
|
|
|
self.base_url = 'https://sass-lang.com/documentation'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.links = {
|
|
|
|
self.links = {
|
|
|
@ -9,22 +9,21 @@ module Docs
|
|
|
|
code: 'https://github.com/sass/sass'
|
|
|
|
code: 'https://github.com/sass/sass'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
html_filters.push 'sass/clean_html', 'sass/entries', 'title'
|
|
|
|
html_filters.push 'sass/entries', 'sass/clean_html'
|
|
|
|
|
|
|
|
|
|
|
|
options[:root_title] = false
|
|
|
|
options[:root_title] = false
|
|
|
|
options[:title] = 'Sass Functions'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options[:skip_patterns] = [/breaking-changes/]
|
|
|
|
options[:skip_patterns] = [/breaking-changes/]
|
|
|
|
|
|
|
|
|
|
|
|
# options[:container] = '#main-content'
|
|
|
|
# options[:container] = '#main-content'
|
|
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2006–2020 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein<br>
|
|
|
|
© 2006–2022 the Sass team, and numerous contributors<br>
|
|
|
|
Licensed under the MIT License.
|
|
|
|
Licensed under the MIT License.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
def get_latest_version(opts)
|
|
|
|
get_latest_github_release('sass', 'libsass', opts)
|
|
|
|
get_npm_version('sass', opts)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|