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.
|
|
|
|
module Docs
|
|
|
|
|
class Svelte < UrlScraper
|
|
|
|
|
self.name = 'Svelte'
|
|
|
|
|
self.slug = 'svelte'
|
|
|
|
|
self.type = 'simple'
|
|
|
|
|
self.links = {
|
|
|
|
|
home: 'https://svelte.dev/',
|
|
|
|
|
code: 'https://github.com/sveltejs/svelte'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
options[:root_title] = 'Svelte'
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
|
© 2016–2022 Rich Harris and contributors<br>
|
|
|
|
|
Licensed under the MIT License.
|
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
options[:skip] = %w(team.html plugins/)
|
|
|
|
|
|
|
|
|
|
self.release = '3.50.1'
|
|
|
|
|
self.base_url = 'https://svelte.dev/docs'
|
|
|
|
|
html_filters.push 'svelte/entries', 'svelte/clean_html'
|
|
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
|
get_npm_version('svelte', opts)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|