| 12345678910111213141516171819202122232425262728293031323334 |
- module Docs
- class Sass < UrlScraper
- self.type = 'yard'
- self.release = '1.89.1'
- self.base_url = 'https://sass-lang.com/documentation'
- self.root_path = 'index.html'
- self.links = {
- home: 'http://sass-lang.com/',
- code: 'https://github.com/sass/sass'
- }
- html_filters.push 'sass/entries', 'sass/clean_html'
- options[:root_title] = false
- options[:skip_patterns] = [/breaking-changes/]
- options[:trailing_slash] = false
- options[:attribution] = <<-HTML
- © 2006–2025 the Sass team, and numerous contributors<br>
- Licensed under the MIT License.
- HTML
- def get_latest_version(opts)
- get_npm_version('sass', opts)
- end
- private
- def parse(response)
- response.body.gsub! '<span class="widont"> </span>', ' '
- end
- end
- end
|