Where can I find the documentation of previous version?

I want to check some official documentation of the previous version I’m using now, but I cannot find it anywhere.
I found this official documentation with 4.14. I found the ‘Select another version’ link, so I clicked it. Now I got release notes, package documentation, and manual links for a certain version, but the documentation is invalid.
For example, the 4.11.1 documentation page only shows strange error logs. (it seems it might try to build something? not sure)

So, as the title, where can I find the documentation of previous versions?

The documentation for the standard library can be found on the ocaml-base-compiler package page (at least for the up-to-date patch versions): Stdlib · ocaml-base-compiler 4.11.2 · OCaml Packages .

Another option is to use the old v2.ocaml.org site for the standard library documentation. For instance, https://v2.ocaml.org/releases/4.11/htmlman/libref is directly accessible from Docs – OCaml .

It might simpler to use the last version of the standard library documentation at OCaml library and rely on the since annotation which should be accurate.

The integration between the new ocaml.org and the versioned standard library and manual is still quite bare-bone (due to a lack of time on my part), but I hope to improve it in the future.

1 Like

Alternatively if you are using opam simply do:

opam install ocaml-manual odig 
odig doc

The index page that opens has direct links to the manual and stdlib docs for the ocaml version of your switch.

4 Likes

Many thanks!!

The documentation for the standard library can be found on the ocaml-base-compiler package page (at least for the up-to-date patch versions): Stdlib · ocaml-base-compiler 4.11.2 · OCaml Packages .

The link still seems invalid for me, because it shows 404 not found.
Instead, the htmlman link is valid, so I will use them!

Wow, I didn’t know that I can build the index page from opam.
Thanks a lot!

You are welcome. It seems Get Up and Running With OCaml · OCaml Tutorials fails to mention the good tools :–)

1 Like