History

Merge pull request #1833 from freeCodeCamp/openjdk

Update OpenJDK documentation (19)

Simon Legner committed 4 years ago

Commit 4c709592 parents dbd1637 4913f972 files · +17 −0Browse files

Unified · Split

2 files
  1. docs/file-scrapers.md +7 −0
  2. lib/docs/scrapers/openjdk.rb +10 −0
docs/file-scrapers.md+7−0
@@ -176,6 +176,13 @@ Search 'Openjdk' in https://www.debian.org/distrib/packages, find the `openjdk-$ · 175 unmodified lines
176176 download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/openjdk-16-jre-headless/api/`
177177 to `path/to/devdocs/docs/openjdk~$VERSION`
178178
179+```
180+curl http://ftp.at.debian.org/debian/pool/main/o/openjdk-19/openjdk-19-doc_19+36-2_all.deb &&
181+tar xf openjdk-19-doc_19+36-2_all.deb
182+tar xf data.tar.xz
183+mv ./usr/share/doc/openjdk-19-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION
184+```
185+
179186 If you use or have access to a Debian-based GNU/Linux distribution you can run the following command:
180187 ```sh
181188 apt download openjdk-$VERSION-doc
lib/docs/scrapers/openjdk.rb+10−0
@@ -37,6 +37,16 @@ module Docs · 36 unmodified lines
3737
3838 NEWFILTERS = ['openjdk/entries_new', 'openjdk/clean_html_new']
3939
40+ version '19' do
41+ self.release = '19'
42+ 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+
4050 version '18' do
4151 self.release = '18'
4252 self.root_path = 'index.html'