소스 검색

Update Groovy documentation (4.0.0)

Simon Legner 3 년 전
부모
커밋
8273108a5a
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 6 1
      lib/docs/scrapers/groovy.rb

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

@@ -359,7 +359,7 @@ credits = [
     'https://raw.githubusercontent.com/graphite-project/graphite-web/master/LICENSE'
   ], [
     'Groovy',
-    '2003-2020 The Apache Software Foundation',
+    '2003-2022 The Apache Software Foundation',
     'Apache',
     'https://github.com/apache/groovy-website/blob/asf-site/LICENSE'
   ], [

+ 6 - 1
lib/docs/scrapers/groovy.rb

@@ -19,10 +19,15 @@ module Docs
     ]
 
     options[:attribution] = <<-HTML
-      &copy; 2003-2020 The Apache Software Foundation<br>
+      &copy; 2003-2022 The Apache Software Foundation<br>
       Licensed under the Apache license.
     HTML
 
+    version '4.0' do
+      self.release = '4.0.0'
+      self.base_url = "https://docs.groovy-lang.org/#{self.release}/html/gapi/"
+    end
+
     version '3.0' do
       self.release = '3.0.9'
       self.base_url = "https://docs.groovy-lang.org/#{self.release}/html/gapi/"