Forráskód Böngészése

Update OpenJDK documentation (25)

Simon Legner 1 hónapja
szülő
commit
87bbcc584d
2 módosított fájl, 14 hozzáadás és 4 törlés
  1. 3 3
      docs/file-scrapers.md
  2. 11 1
      lib/docs/scrapers/openjdk.rb

+ 3 - 3
docs/file-scrapers.md

@@ -178,10 +178,10 @@ download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/ope
 to `path/to/devdocs/docs/openjdk~$VERSION`
 
 ```sh
-curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-21/openjdk-21-doc_21.0.2+13-2_all.deb
-tar xf openjdk-21-doc_21.0.2+13-2_all.deb
+curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-25/openjdk-25-doc_25+36-1_all.deb
+tar xf openjdk-25-doc_25+36-1_all.deb
 tar xf data.tar.xz
-mv ./usr/share/doc/openjdk-21-jre-headless/api/ docs/openjdk~$VERSION
+mv ./usr/share/doc/openjdk-25-jre-headless/api/ docs/openjdk~25
 ```
 
 If you use or have access to a Debian-based GNU/Linux distribution you can run the following command:

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

@@ -28,7 +28,7 @@ module Docs
     ]
 
     options[:attribution] = <<-HTML
-      &copy; 1993, 2023, Oracle and/or its affiliates. All rights reserved.<br>
+      &copy; 1993, 2025, 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 '25' do
+      self.release = '25'
+      self.root_path = 'index.html'
+      self.base_url = 'https://docs.oracle.com/en/java/javase/25/docs/api/'
+
+      html_filters.push NEWFILTERS
+
+      options[:container] = 'main'
+    end
+
     version '21' do
       self.release = '21'
       self.root_path = 'index.html'