Skip to content

Commit 87bbcc5

Browse files
committed
Update OpenJDK documentation (25)
1 parent 1af0573 commit 87bbcc5

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

docs/file-scrapers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/ope
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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Openjdk < FileScraper
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 @@ class Openjdk < FileScraper
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'

0 commit comments

Comments
 (0)