spring_boot.rb 885 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class SpringBoot < UrlScraper
  3. self.name = 'Spring Boot'
  4. self.slug = 'spring_boot'
  5. self.type = 'simple'
  6. self.root_path = "index.html"
  7. self.links = {
  8. home: 'https://spring.io/',
  9. code: 'https://github.com/spring-projects/spring-boot'
  10. }
  11. html_filters.push 'spring_boot/entries', 'spring_boot/clean_html'
  12. options[:skip_patterns] = [/legal/]
  13. # https://github.com/spring-projects/spring-boot/blob/main/buildSrc/src/main/resources/NOTICE.txt
  14. options[:attribution] = <<-HTML
  15. Copyright &copy; 2012-2023 VMware, Inc.<br>
  16. Licensed under the Apache License, Version 2.0.
  17. HTML
  18. self.release = '3.1.3'
  19. self.base_url = "https://docs.spring.io/spring-boot/docs/#{release}/reference/html/"
  20. def get_latest_version(opts)
  21. get_latest_github_release('spring-projects', 'spring-boot', opts)
  22. end
  23. end
  24. end