yarn.rb 606 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Yarn < UrlScraper
  3. self.type = 'yarn'
  4. self.release = '0.27.5'
  5. self.base_url = 'https://yarnpkg.com/en/docs/'
  6. self.links = {
  7. home: 'https://yarnpkg.com/',
  8. code: 'https://github.com/yarnpkg/yarn'
  9. }
  10. html_filters.push 'yarn/entries', 'yarn/clean_html', 'title'
  11. options[:root_title] = 'Yarn'
  12. options[:trailing_slash] = false
  13. options[:skip] = %w(nightly)
  14. options[:skip_patterns] = [/\Aorg\//]
  15. options[:attribution] = <<-HTML
  16. &copy; 2016&ndash;2017 Yarn Contributors<br>
  17. Licensed under the BSD License.
  18. HTML
  19. end
  20. end