[devdocsgjs/main: 47/239] Update Spring Boot documentation (2.6.1)




commit 8f01469182435127a5d0d42201364a41bdc37e60
Author: Simon Legner <Simon Legner gmail com>
Date:   Sun Dec 5 01:31:43 2021 +0100

    Update Spring Boot documentation (2.6.1)

 assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
 lib/docs/filters/spring_boot/clean_html.rb           | 4 +++-
 lib/docs/scrapers/spring_boot.rb                     | 8 +++-----
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 361d0d08..a0beb7b3 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/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'
   ]
diff --git a/lib/docs/filters/spring_boot/clean_html.rb b/lib/docs/filters/spring_boot/clean_html.rb
index eb1639d3..672fc912 100644
--- a/lib/docs/filters/spring_boot/clean_html.rb
+++ b/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
diff --git a/lib/docs/scrapers/spring_boot.rb b/lib/docs/scrapers/spring_boot.rb
index 9e9cbc33..224c48be 100644
--- a/lib/docs/scrapers/spring_boot.rb
+++ b/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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]