History

Update OpenJDK documentation (25)

Simon Legner committed 1 year ago

Commit 87bbcc51 parent 1af05732 files · +14 −4Browse files

Unified · Split

2 files
  1. docs/file-scrapers.md +3 −3
  2. lib/docs/scrapers/openjdk.rb +11 −1
docs/file-scrapers.md+3−3
@@ -178,10 +178,10 @@ download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/ope · 177 unmodified lines
178178 to `path/to/devdocs/docs/openjdk~$VERSION`
179179
180180 ```sh
181−curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-21/openjdk-21-doc_21.0.2+13-2_all.deb
182−tar xf openjdk-21-doc_21.0.2+13-2_all.deb
181+curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-25/openjdk-25-doc_25+36-1_all.deb
182+tar xf openjdk-25-doc_25+36-1_all.deb
183183 tar xf data.tar.xz
184−mv ./usr/share/doc/openjdk-21-jre-headless/api/ docs/openjdk~$VERSION
184+mv ./usr/share/doc/openjdk-25-jre-headless/api/ docs/openjdk~25
185185 ```
186186
187187 If you use or have access to a Debian-based GNU/Linux distribution you can run the following command:
lib/docs/scrapers/openjdk.rb+11−1
@@ -28,7 +28,7 @@ module Docs · 27 unmodified lines
2828 ]
2929
3030 options[:attribution] = <<-HTML
31− &copy; 1993, 2023, Oracle and/or its affiliates. All rights reserved.<br>
31+ &copy; 1993, 2025, Oracle and/or its affiliates. All rights reserved.<br>
3232 Documentation extracted from Debian's OpenJDK Development Kit package.<br>
3333 Licensed under the GNU General Public License, version 2, with the Classpath Exception.<br>
3434 Various third party code in OpenJDK is licensed under different licenses (see Debian package).<br>
@@ -37,6 +37,16 @@ module Docs · 2 unmodified lines
3737
3838 NEWFILTERS = ['openjdk/entries_new', 'openjdk/clean_html_new']
3939
40+ version '25' do
41+ self.release = '25'
42+ self.root_path = 'index.html'
43+ self.base_url = 'https://docs.oracle.com/en/java/javase/25/docs/api/'
44+
45+ html_filters.push NEWFILTERS
46+
47+ options[:container] = 'main'
48+ end
49+
4050 version '21' do
4151 self.release = '21'
4252 self.root_path = 'index.html'