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.
devdocs/lib/docs/scrapers/vitest.rb

30 lines
727 B

module Docs
class Vitest < UrlScraper
self.name = 'Vitest'
self.slug = 'vitest'
self.type = 'simple'
self.links = {
home: 'https://vitest.dev/',
code: 'https://github.com/vitest-dev/vitest'
}
options[:root_title] = 'Vitest'
options[:download_images] = false
options[:attribution] = <<-HTML
&copy; 2021-Present Anthony Fu<br>
&copy; 2021-Present Matias Capeletto<br>
Licensed under the MIT License.
HTML
self.release = '2.0.3'
self.base_url = 'https://vitest.dev/'
self.initial_paths = %w(guide/)
html_filters.push 'vitest/entries', 'vite/clean_html'
def get_latest_version(opts)
get_npm_version('vitest', opts)
end
end
end