devdocs/lib/docs/scrapers/spring_boot.rb

29 lines
751 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

module Docs
class SpringBoot < UrlScraper
self.name = 'Spring Boot'
self.slug = 'spring_boot'
self.type = 'simple'
self.root_path = "index.html"
self.links = {
home: 'https://spring.io/',
code: 'https://github.com/spring-projects/spring-boot'
}
html_filters.push 'spring_boot/entries', 'spring_boot/clean_html'
options[:skip_patterns] = [/legal/]
options[:attribution] = <<-HTML
Copyright &copy; 20022021 Pivotal, Inc. All Rights Reserved.
HTML
self.release = '2.6.1'
self.base_url = "https://docs.spring.io/spring-boot/docs/#{release}/reference/html/"
def get_latest_version(opts)
get_latest_github_release('spring-projects', 'spring-boot', opts)
end
end
end