mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
614 B
26 lines
614 B
3 years ago
|
module Docs
|
||
|
class Prettier < UrlScraper
|
||
|
self.name = 'Prettier'
|
||
|
self.type = 'simple'
|
||
|
self.release = '2.5.1'
|
||
|
self.base_url = 'https://prettier.io/docs/en/'
|
||
|
self.links = {
|
||
|
home: 'https://prettier.io/',
|
||
|
code: 'https://github.com/prettier/prettier'
|
||
|
}
|
||
|
|
||
|
# Docusaurus like react_native
|
||
|
html_filters.push 'prettier/entries', 'react_native/clean_html'
|
||
|
|
||
|
options[:container] = '.docMainWrapper'
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© James Long and contributors
|
||
|
HTML
|
||
|
|
||
|
def get_latest_version(opts)
|
||
|
get_npm_version('prettier', opts)
|
||
|
end
|
||
|
end
|
||
|
end
|