History

Update OpenJDK documentation (21)

Simon Legner committed 2 years ago

Commit a80293a1 parent 88544ab2 files · +9 −19Browse files

Unified · Split

2 files
  1. docs/file-scrapers.md +5 −5
  2. lib/docs/scrapers/openjdk.rb +4 −14
docs/file-scrapers.md+5−5
@@ -166,11 +166,11 @@ Search 'Openjdk' in https://www.debian.org/distrib/packages, find the `openjdk-$ · 165 unmodified lines
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:
@@ -178,7 +178,7 @@ If you use or have access to a Debian-based GNU/Linux distribution you can run t · 1 unmodified line
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+4−14
@@ -28,7 +28,7 @@ module Docs · 27 unmodified lines
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 @@ module Docs · 2 unmodified lines
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