Browse Source

Update Spring Boot documentation (2.6.1)

Simon Legner 4 years ago
parent
commit
8f01469182

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

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

+ 3 - 1
lib/docs/filters/spring_boot/clean_html.rb

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

+ 3 - 5
lib/docs/scrapers/spring_boot.rb

@@ -14,13 +14,11 @@ module Docs
     options[:skip_patterns] = [/legal/]
 
     options[:attribution] = <<-HTML
-    Copyright &copy; 2002–2020 Pivotal, Inc. All Rights Reserved.
+    Copyright &copy; 2002–2021 Pivotal, Inc. All Rights Reserved.
     HTML
 
-    version do
-      self.release = '2.4.0'
-      self.base_url = "https://docs.spring.io/spring-boot/docs/#{release}/reference/html/"
-    end
+    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)