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
176download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/openjdk-16-jre-headless/api/`176download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/openjdk-16-jre-headless/api/`
177to `path/to/devdocs/docs/openjdk~$VERSION`177to `path/to/devdocs/docs/openjdk~$VERSION`
178 178
179```
180curl http://ftp.at.debian.org/debian/pool/main/o/openjdk-19/openjdk-19-doc_19+36-2_all.deb &&
181tar xf openjdk-19-doc_19+36-2_all.deb
182tar xf data.tar.xz
183mv ./usr/share/doc/openjdk-19-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION
184```
185
179If you use or have access to a Debian-based GNU/Linux distribution you can run the following command:186If you use or have access to a Debian-based GNU/Linux distribution you can run the following command:
180```sh187```sh
181apt download openjdk-$VERSION-doc188apt download openjdk-$VERSION-doc
lib/docs/scrapers/openjdk.rb+10−0
@@ -37,6 +37,16 @@ module Docs · 36 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' 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
40 version '18' do50 version '18' do
41 self.release = '18'51 self.release = '18'
42 self.root_path = 'index.html'52 self.root_path = 'index.html'