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/vueuse.rb

33 lines
837 B

module Docs
class Vueuse < UrlScraper
self.name = 'VueUse'
self.slug = 'vueuse'
self.type = 'vueuse'
self.links = {
home: 'https://vueuse.org/',
code: 'https://github.com/vueuse/vueuse'
}
options[:skip] = %w(add-ons contributing ecosystem)
options[:skip_patterns] = [/index$/]
options[:fix_urls] = ->(url) do
url.sub! 'vueuse.org/use', 'vueuse.org/core/use'
url
end
options[:attribution] = <<-HTML
&copy; 2019-present Anthony Fu<br>
Licensed under the MIT License.
HTML
self.release = '9.4.0'
self.base_url = 'https://vueuse.org/'
self.initial_paths = %w(functions.html)
html_filters.push 'vueuse/entries', 'vite/clean_html', 'vueuse/clean_html'
def get_latest_version(opts)
get_npm_version('vueuse', opts)
end
end
end