1
0

svelte.rb 673 B

12345678910111213141516171819202122232425262728
  1. module Docs
  2. class Svelte < UrlScraper
  3. self.name = 'Svelte'
  4. self.slug = 'svelte'
  5. self.type = 'simple'
  6. self.links = {
  7. home: 'https://svelte.dev/',
  8. code: 'https://github.com/sveltejs/svelte'
  9. }
  10. options[:root_title] = 'Svelte'
  11. options[:attribution] = <<-HTML
  12. &copy; 2016–2022 Rich Harris and contributors<br>
  13. Licensed under the MIT License.
  14. HTML
  15. options[:skip] = %w(team.html plugins/)
  16. self.release = '3.50.1'
  17. self.base_url = 'https://svelte.dev/docs'
  18. html_filters.push 'svelte/entries', 'svelte/clean_html'
  19. def get_latest_version(opts)
  20. get_npm_version('svelte', opts)
  21. end
  22. end
  23. end