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
166download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/openjdk-16-jre-headless/api/`166download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/openjdk-16-jre-headless/api/`
167to `path/to/devdocs/docs/openjdk~$VERSION`167to `path/to/devdocs/docs/openjdk~$VERSION`
168 168
169```169```sh
170curl http://ftp.at.debian.org/debian/pool/main/o/openjdk-19/openjdk-19-doc_19+36-2_all.deb &&170curl -O http://ftp.at.debian.org/debian/pool/main/o/openjdk-21/openjdk-21-doc_21.0.1+12-3_all.deb
171tar xf openjdk-19-doc_19+36-2_all.deb171tar xf openjdk-21-doc_21.0.1+12-3_all.deb
172tar xf data.tar.xz172tar xf data.tar.xz
173mv ./usr/share/doc/openjdk-19-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION173mv ./usr/share/doc/openjdk-21-jre-headless/api/ docs/openjdk~$VERSION
174```174```
175 175
176If you use or have access to a Debian-based GNU/Linux distribution you can run the following command:176If 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
178apt download openjdk-$VERSION-doc178apt download openjdk-$VERSION-doc
179dpkg -x $PACKAGE ./179dpkg -x $PACKAGE ./
180# previous command makes a directory called 'usr' in the current directory180# previous command makes a directory called 'usr' in the current directory
181mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION181mv ./usr/share/doc/openjdk-16-jre-headless/api/ docs/openjdk~$VERSION
182```182```
183 183
184## Pandas184## Pandas
lib/docs/scrapers/openjdk.rb+4−14
@@ -28,7 +28,7 @@ module Docs · 27 unmodified lines
28 ]28 ]
29 29
30 options[:attribution] = <<-HTML30 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>
32 Documentation extracted from Debian's OpenJDK Development Kit package.<br>32 Documentation extracted from Debian's OpenJDK Development Kit package.<br>
33 Licensed under the GNU General Public License, version 2, with the Classpath Exception.<br>33 Licensed under the GNU General Public License, version 2, with the Classpath Exception.<br>
34 Various third party code in OpenJDK is licensed under different licenses (see Debian package).<br>34 Various third party code in OpenJDK is licensed under different licenses (see Debian package).<br>
@@ -37,20 +37,10 @@ module Docs · 2 unmodified lines
37 37
38 NEWFILTERS = ['openjdk/entries_new', 'openjdk/clean_html_new']38 NEWFILTERS = ['openjdk/entries_new', 'openjdk/clean_html_new']
39 39
40 version '19' do40 version '21' do
41 self.release = '19'41 self.release = '21'
42 self.root_path = 'index.html'42 self.root_path = 'index.html'
43 self.base_url = 'https://docs.oracle.com/en/java/javase/19/docs/api/'43 self.base_url = 'https://docs.oracle.com/en/java/javase/21/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/'
54 44
55 html_filters.push NEWFILTERS45 html_filters.push NEWFILTERS
56 46