mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
25 lines
610 B
Ruby
25 lines
610 B
Ruby
module Docs
|
|
class Prettier < UrlScraper
|
|
self.name = 'Prettier'
|
|
self.type = 'simple'
|
|
self.release = '3.0.0'
|
|
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', 'prettier/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
|