Maxence Guesdon <maxence.gues...@inria.fr> writes:

   Hendrik Tews <t...@os.inf.tu-dresden.de> wrote:
   > 
   >     (** Uses {!print_endline} *)
   >     let f () = print_endline "Hello"
   > 
   > What do I have to do such that ocamldoc generates a
   > crossreference to 
   > 
file:///usr/share/doc/ocaml-doc/ocaml.html/libref/Pervasives.html#VALprint_endline
   > ?

   OCamldoc can only create links to elements it knows about, i.e. in modules
   given on command line (or loaded from a dump).
   So the answer is: you can't.

After some discussion in the bug tracker, it turns out that one
can get pretty far with a ocamldoc custom generator that uses the
undocumented feature of custom text elements.

See http://askra.de/software/misc/odoc_xref.ml for my preliminary
version of such a generator.

Bye,

Hendrik

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to