spring_boot.rb 853 B

1234567891011121314151617181920212223242526272829
  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; 2002–2022 Pivotal, Inc. All Rights Reserved.
  16. HTML
  17. self.release = '2.7.0'
  18. self.base_url = "https://docs.spring.io/spring-boot/docs/#{release}/reference/html/"
  19. def get_latest_version(opts)
  20. get_latest_github_release('spring-projects', 'spring-boot', opts)
  21. end
  22. end
  23. end