sanette / ocaml-api

Proposition for modernizing the OCaml API from the official manual

Home Page:https://sanette.github.io/ocaml-api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OCaml-api

Proposition for modernizing the OCaml API from the official manual

Try it out here for the standard lib, or there for the compiler lib.

The documentation shown on the web page that is linked above is copyright Institut National de Recherche en Informatique et en Automatique (INRIA). A complete version can be obtained from this page.

Running the script

  1. Install lambdasoup

opam install lambdasoup

  1. Download or clone the repository

  2. make

In the ocaml-api directory, run make. This will run the process.ml script, which downloads the manuals, populates the docs directory, and copy the css, js and svg files.

  1. Browse!

firefox docs/index.html

More options

Cleaning the docs directory:

make clean

The src/*libref/index-??.js files can be re-created from scratch:

make index

The behaviour of the script can be controlled by a few keywords: makeindex, overwrite, silent, and html. (html is true by default unless makeindex is present.)

dune exec src/process.exe                # only process html files
dune exec src/process.exe makeindex      # only create the index file
dune exec src/process.exe overwrite      # force overwriting existing html files
dune exec src/process.exe makeindex html # create index and process html files
dune exec src/process.exe [...] silent   # suppress console output
etc... (all keywords can be combined)

About

Proposition for modernizing the OCaml API from the official manual

https://sanette.github.io/ocaml-api/

License:GNU General Public License v3.0


Languages

Language:SCSS 39.1%Language:OCaml 32.9%Language:JavaScript 20.7%Language:HTML 6.1%Language:Makefile 1.2%