Преглед на файлове

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/"