devdocs/lib/docs/scrapers/esbuild.rb
2022-09-06 15:02:35 +02:00

27 lines
653 B
Ruby

module Docs
class Esbuild < UrlScraper
self.name = 'esbuild'
self.slug = 'esbuild'
self.type = 'simple'
self.links = {
home: 'https://esbuild.github.io/',
code: 'https://github.com/evanw/esbuild'
}
options[:container] = 'main'
options[:root_title] = 'esbuild'
options[:attribution] = <<-HTML
&copy; 2020 Evan Wallace<br>
Licensed under the MIT License.
HTML
self.release = '0.15.7'
self.base_url = 'https://esbuild.github.io/'
html_filters.push 'esbuild/clean_html', 'esbuild/entries'
def get_latest_version(opts)
get_npm_version('esbuild', opts)
end
end
end