1
0

nextjs.rb 724 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Nextjs < UrlScraper
  3. self.name = 'Next.js'
  4. self.slug = 'nextjs'
  5. self.type = 'simple'
  6. self.release = '14.2.4'
  7. self.base_url = 'https://nextjs.org/docs'
  8. self.initial_paths = %w(reference/)
  9. self.links = {
  10. home: 'https://www.nextjs.org/',
  11. code: 'https://github.com/vercel/next.js'
  12. }
  13. html_filters.push 'nextjs/entries', 'nextjs/clean_html'
  14. options[:download_images] = false
  15. options[:attribution] = <<-HTML
  16. &copy; 2024 Vercel, Inc.<br>
  17. Licensed under the MIT License.
  18. HTML
  19. def get_latest_version(opts)
  20. get_npm_version('next', opts)
  21. end
  22. end
  23. end