Showing the changes to docs (1 of 5 files). Show all
Unified · Split
| @@ -127,23 +127,16 @@ tar xf ocaml-4.10-refman-html.tar.gz --transform 's/htmlman/ocaml/' · 126 unmodified lines | |||
| 127 | ``` | 127 | ``` |
| 128 | 128 | ||
| 129 | ## OpenJDK | 129 | ## OpenJDK |
| 130 | Search 'Openjdk' in https://www.debian.org/distrib/packages, find the `openjdk-$VERSION-doc` package, | ||
| 131 | download it, extract it with `dpkg -x $PACKAGE ./` and move `./usr/share/doc/openjdk-16-jre-headless/api/` | ||
| 132 | to `path/to/devdocs/docs/openjdk~$VERSION` | ||
| 130 | 133 | ||
| 131 | https://packages.debian.org/sid/openjdk-11-doc | 134 | If you use or have access to a Debian-based GNU/Linux distribution you can run the following command: |
| 132 | |||
| 133 | ```sh | ||
| 134 | mkdir docs/openjdk~11 | ||
| 135 | curl --remote-name http://ftp.debian.org/debian/pool/main/o/openjdk-11/openjdk-11-doc_11.0.9.1+1-1_all.deb | ||
| 136 | bsdtar --extract --to-stdout --file openjdk-11-doc_11.0.9.1+1-1_all.deb data.tar.xz | \ | ||
| 137 | bsdtar --extract --xz --file - --strip-components=6 --directory=docs/openjdk\~11/ ./usr/share/doc/openjdk-11-jre-headless/api/ | ||
| 138 | ``` | ||
| 139 | |||
| 140 | https://packages.debian.org/sid/openjdk-8-doc | ||
| 141 | |||
| 142 | ```sh | 135 | ```sh |
| 143 | mkdir docs/openjdk~8 | 136 | apt download openjdk-$VERSION-doc |
| 144 | curl --remote-name http://ftp.debian.org/debian/pool/main/o/openjdk-8/openjdk-8-doc_8u272-b10-1_all.deb | 137 | dpkg -x $PACKAGE ./ |
| 145 | bsdtar --extract --to-stdout --file openjdk-8-doc_8u272-b10-1_all.deb data.tar.xz | \ | 138 | # previous command makes a directory called 'usr' in the current directory |
| 146 | bsdtar --extract --xz --file - --strip-components=6 --directory=docs/openjdk\~8/ ./usr/share/doc/openjdk-8-jre-headless/api/ | 139 | mv ./usr/share/doc/openjdk-16-jre-headless/api/ path/to/devdocs/docs/openjdk~$VERSION |
| 147 | ``` | 140 | ``` |
| 148 | 141 | ||
| 149 | ## PHP | 142 | ## PHP |