|
|
@ -2,8 +2,8 @@ module Docs
|
|
|
|
class Prettier < UrlScraper
|
|
|
|
class Prettier < UrlScraper
|
|
|
|
self.name = 'Prettier'
|
|
|
|
self.name = 'Prettier'
|
|
|
|
self.type = 'simple'
|
|
|
|
self.type = 'simple'
|
|
|
|
self.release = '3.4.2'
|
|
|
|
self.release = '3.5.3'
|
|
|
|
self.base_url = 'https://prettier.io/docs/en/'
|
|
|
|
self.base_url = 'https://prettier.io/docs/'
|
|
|
|
self.links = {
|
|
|
|
self.links = {
|
|
|
|
home: 'https://prettier.io/',
|
|
|
|
home: 'https://prettier.io/',
|
|
|
|
code: 'https://github.com/prettier/prettier'
|
|
|
|
code: 'https://github.com/prettier/prettier'
|
|
|
@ -12,11 +12,10 @@ module Docs
|
|
|
|
# Docusaurus like react_native
|
|
|
|
# Docusaurus like react_native
|
|
|
|
html_filters.push 'prettier/entries', 'prettier/clean_html'
|
|
|
|
html_filters.push 'prettier/entries', 'prettier/clean_html'
|
|
|
|
|
|
|
|
|
|
|
|
options[:container] = '.docMainWrapper'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© James Long and contributors
|
|
|
|
© James Long and contributors
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
|
|
|
|
options[:skip_patterns] = [ /^next/ ]
|
|
|
|
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
def get_latest_version(opts)
|
|
|
|
get_npm_version('prettier', opts)
|
|
|
|
get_npm_version('prettier', opts)
|
|
|
|