24 lines · 604 B · Ruby
RawDownload
module Docs  class Prettier < UrlScraper    self.name = 'Prettier'    self.type = 'simple'    self.release = '3.6.2'    self.base_url = 'https://prettier.io/docs/'    self.links = {      home: 'https://prettier.io/',      code: 'https://github.com/prettier/prettier'    }     # Docusaurus like react_native    html_filters.push 'prettier/entries', 'prettier/clean_html'     options[:attribution] = <<-HTML      &copy; James Long and contributors    HTML    options[:skip_patterns] = [ /^next/ ]     def get_latest_version(opts)      get_npm_version('prettier', opts)      end  endend