瀏覽代碼

Update file-scrapers.md for ocaml

Simon Legner 4 年之前
父節點
當前提交
6109a773c4
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      docs/file-scrapers.md

+ 2 - 3
docs/file-scrapers.md

@@ -127,9 +127,8 @@ https://ocaml.org/releases/4.11/ocaml-4.11-refman-html.tar.gz
 and extract it as `/path/to/devdocs/docs/ocaml`:
 
 ```sh
-cd /path/to/devdocs/docs
-wget https://ocaml.org/releases/4.11/ocaml-4.11-refman-html.tar.gz
-tar xf ocaml-4.10-refman-html.tar.gz --transform 's/htmlman/ocaml/'
+curl https://ocaml.org/releases/$VERSION/ocaml-$VERSION-refman-html.tar.gz | \
+tar xz --transform 's/htmlman/ocaml/' --directory docs/
 ```
 
 ## OpenJDK