Update Spring Boot documentation (2.6.1)

pull/1670/head
Simon Legner 3 years ago
parent 6bb9114a50
commit 8f01469182

@ -908,7 +908,7 @@ credits = [
'https://raw.githubusercontent.com/yiisoft/yii/master/LICENSE' 'https://raw.githubusercontent.com/yiisoft/yii/master/LICENSE'
], [ ], [
'Spring Boot', 'Spring Boot',
'2002-2020 Pivotal, Inc. All Rights Reserved.', '2002-2021 Pivotal, Inc. All Rights Reserved.',
'Apache License 2.0', 'Apache License 2.0',
'https://raw.githubusercontent.com/spring-projects/spring-boot/master/LICENSE.txt' 'https://raw.githubusercontent.com/spring-projects/spring-boot/master/LICENSE.txt'
] ]

@ -2,6 +2,8 @@ module Docs
class SpringBoot class SpringBoot
class CleanHtmlFilter < Filter class CleanHtmlFilter < Filter
def call def call
at_css('#content').prepend_child(at_css('h1'))
@doc = at_css('#content')
css('pre').each do |node| css('pre').each do |node|
language = node.children.first['data-lang'] if node.children.first.name == 'code' language = node.children.first['data-lang'] if node.children.first.name == 'code'

@ -14,13 +14,11 @@ module Docs
options[:skip_patterns] = [/legal/] options[:skip_patterns] = [/legal/]
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
Copyright &copy; 20022020 Pivotal, Inc. All Rights Reserved. Copyright &copy; 20022021 Pivotal, Inc. All Rights Reserved.
HTML HTML
version do self.release = '2.6.1'
self.release = '2.4.0'
self.base_url = "https://docs.spring.io/spring-boot/docs/#{release}/reference/html/" self.base_url = "https://docs.spring.io/spring-boot/docs/#{release}/reference/html/"
end
def get_latest_version(opts) def get_latest_version(opts)
get_latest_github_release('spring-projects', 'spring-boot', opts) get_latest_github_release('spring-projects', 'spring-boot', opts)

Loading…
Cancel
Save