Skip to content

Commit a80293a

Browse files
committed
Update OpenJDK documentation (21)
1 parent 88544ab commit a80293a

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

docs/file-scrapers.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,19 +166,19 @@ Search 'Openjdk' in https://www.debian.org/distrib/packages, find the `openjdk-$
166166
download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/openjdk-16-jre-headless/api/`
167167
to `path/to/devdocs/docs/openjdk~$VERSION`
168168

169-
```
170-
curl http://ftp.at.debian.org/debian/pool/main/o/openjdk-19/openjdk-19-doc_19+36-2_all.deb &&
171-
tar xf openjdk-19-doc_19+36-2_all.deb
169+
```sh
170+
curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-21/openjdk-21-doc_21.0.1+12-3_all.deb
171+
tar xf openjdk-21-doc_21.0.1+12-3_all.deb
172172
tar xf data.tar.xz
173-
mv ./usr/share/doc/openjdk-19-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION
173+
mv ./usr/share/doc/openjdk-21-jre-headless/api/ docs/openjdk~$VERSION
174174
```
175175

176176
If you use or have access to a Debian-based GNU/Linux distribution you can run the following command:
177177
```sh
178178
apt download openjdk-$VERSION-doc
179179
dpkg -x $PACKAGE ./
180180
# previous command makes a directory called 'usr' in the current directory
181-
mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION
181+
mv ./usr/share/doc/openjdk-16-jre-headless/api/ docs/openjdk~$VERSION
182182
```
183183

184184
## Pandas

lib/docs/scrapers/openjdk.rb

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Openjdk < FileScraper
2828
]
2929

3030
options[:attribution] = <<-HTML
31-
&copy; 1993, 2022, Oracle and/or its affiliates. All rights reserved.<br>
31+
&copy; 1993, 2023, 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,20 +37,10 @@ class Openjdk < FileScraper
3737

3838
NEWFILTERS = ['openjdk/entries_new', 'openjdk/clean_html_new']
3939

40-
version '19' do
41-
self.release = '19'
40+
version '21' do
41+
self.release = '21'
4242
self.root_path = 'index.html'
43-
self.base_url = 'https://docs.oracle.com/en/java/javase/19/docs/api/'
44-
45-
html_filters.push NEWFILTERS
46-
47-
options[:container] = 'main'
48-
end
49-
50-
version '18' do
51-
self.release = '18'
52-
self.root_path = 'index.html'
53-
self.base_url = 'https://docs.oracle.com/en/java/javase/18/docs/api/'
43+
self.base_url = 'https://docs.oracle.com/en/java/javase/21/docs/api/'
5444

5545
html_filters.push NEWFILTERS
5646

0 commit comments

Comments
 (0)