浏览代码

Update OpenJDK documentation (18)

Simon Legner 3 年之前
父节点
当前提交
dba20951af
共有 2 个文件被更改,包括 12 次插入2 次删除
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 11 1
      lib/docs/scrapers/openjdk.rb

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

@@ -619,7 +619,7 @@ credits = [
     'https://octave.org/doc/v7.1.0/'
   ], [
     'OpenJDK',
-    '1993, 2021, Oracle and/or its affiliates. All rights reserved.<br>Licensed under the GNU General Public License, version 2, with the Classpath Exception.<br>Various third party code in OpenJDK is licensed under different licenses.<br>Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.',
+    '1993, 2022, Oracle and/or its affiliates. All rights reserved.<br>Licensed under the GNU General Public License, version 2, with the Classpath Exception.<br>Various third party code in OpenJDK is licensed under different licenses.<br>Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.',
     'GPLv2',
     'http://openjdk.java.net/legal/gplv2+ce.html'
   ], [

+ 11 - 1
lib/docs/scrapers/openjdk.rb

@@ -28,7 +28,7 @@ module Docs
     ]
 
     options[:attribution] = <<-HTML
-      &copy; 1993, 2021, Oracle and/or its affiliates. All rights reserved.<br>
+      &copy; 1993, 2022, Oracle and/or its affiliates. All rights reserved.<br>
       Documentation extracted from Debian's OpenJDK Development Kit package.<br>
       Licensed under the GNU General Public License, version 2, with the Classpath Exception.<br>
       Various third party code in OpenJDK is licensed under different licenses (see Debian package).<br>
@@ -37,6 +37,16 @@ module Docs
 
     NEWFILTERS = ['openjdk/entries_new', 'openjdk/clean_html_new']
 
+    version '18' do
+      self.release = '18'
+      self.root_path = 'index.html'
+      self.base_url = 'https://docs.oracle.com/en/java/javase/18/docs/api/'
+
+      html_filters.push NEWFILTERS
+
+      options[:container] = 'main'
+    end
+
     version '17' do
       self.release = '17'
       self.root_path = 'index.html'