[opam-devel] opam-doc
Thomas Gazagnaire
thomas at gazagnaire.org
Thu Dec 19 16:58:23 GMT 2013
I've just merged an opam-doc package into ocaml/opam-repository. Should land in your 'opam update' pretty soon.
So the new instructions:
1. opam install opam-doc
2. opam doc PKG1 ... PKGn
3. open your browser to point to http://127.0.0.1:8000
The goal of that early release is to gather feedback, so please use and shout at https://github.com/ocamllabs/opam-doc/issues
NB: the package is only available for system compilers (and alias of system compilers) with version 4.01.0.
Best,
Thomas
On 19 Dec 2013, at 13:36, Thomas Gazagnaire <thomas at gazagnaire.org> wrote:
> Hi all,
>
> I've tried to simplify the use of Leo's opam-doc and I came up with a pretty simple workflow.
>
> 1. install opam-doc:
>
> git clone git at github.com:samoht/opam-doc.git
> cd opam-doc
> opam install cow && make && make install
>
> This will create a `doc` switch with the right compiler wrappers, and it will install opam-doc-* scripts in your current switch.
>
> 2. build the documentation
>
> opam doc PKG1 ... PKGn
>
> this will install the various packages in the `doc` switch, call the various scripts to install the cmd files at the right place and generate the HTML pages and so on. Finally, it will serve the contents of ~/.opam/doc/doc on http://127.0.0.1:8000 than you can then browse locally (using python -m SimpleHTTPServer).
>
> This is still a very preliminary work (I'd love to replace the bunch of scripts by a proper OCaml program -- to easily change host port/name for instance) but I'd gladly welcome your feedback.
>
> Best,
> Thomas
>
>
>
More information about the opam-devel
mailing list