From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.0 required=5.0 tests=AWL,DNS_FROM_RFC_POST, HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id BEF19BBAF for ; Fri, 11 Sep 2009 20:46:18 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AngBAAM4qkrRVd6tkGdsb2JhbACCJjCNPoFxiQA/AQEBAQkJDAcTA7AwgSqQBQEDAgSEFAWBVHI X-IronPort-AV: E=Sophos;i="4.44,372,1249250400"; d="scan'208";a="32623044" Received: from mail-pz0-f173.google.com ([209.85.222.173]) by mail2-smtp-roc.national.inria.fr with ESMTP; 11 Sep 2009 20:46:17 +0200 Received: by pzk3 with SMTP id 3so1018072pzk.28 for ; Fri, 11 Sep 2009 11:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=NpKoSGbT2JjY2MP511WtW6J1zDgaubAslMMWZSSOwB0=; b=ULYFB1/JbvAMMXagjhsKTnmP4cTC8eAwjbv/C+gpwlI4zqG+GvUAinK+xj/eT5g6s+ EDL4EPQ0mx07AiX8FSrJ3JqDBqgP6o2y8v+XeSvuVH2Q+kmKdzq4K5RHBN9ljpMzjiod 9OMSmgv4qFWN5tn5eJ2xV+tcsw3D+PFf6QDfs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=v8tjVMZqulHCZgEbv8bv1dTsoaMYj5dEfzo+VgyTDQqLMmrYvMxZ/eX9s8w7z4PAHP yDl4lg+1TruJ+wi5aIP+jm9RKnci/gtBUWCNOdIz+vaKPs7Dd3fQAgo9HRHq8hID8R25 P0JRTSkXpN7adGRcoYHs5LRoItoSwrOSdK0+4= MIME-Version: 1.0 Received: by 10.142.152.26 with SMTP id z26mr270883wfd.324.1252694776060; Fri, 11 Sep 2009 11:46:16 -0700 (PDT) In-Reply-To: <4b39c80a0909110847p9571028t54929c334a449d02@mail.gmail.com> References: <4b39c80a0909110847p9571028t54929c334a449d02@mail.gmail.com> From: Ashish Agarwal Date: Fri, 11 Sep 2009 14:45:56 -0400 Message-ID: Subject: Re: [Caml-list] Ocamldoc and multiple packages To: Alexey Rodriguez Cc: OCaml List Content-Type: multipart/alternative; boundary=000e0cd2de12239d95047351bb30 X-Spam: no; 0.00; ocamldoc:01 ocamldoc:01 ocaml:01 -for-pack:01 -pack:01 -load:01 arises:01 -pack:01 cheers:01 beginner's:01 ocaml:01 bug:01 -for-pack:01 -load:01 arises:01 --000e0cd2de12239d95047351bb30 Content-Type: text/plain; charset=ISO-8859-1 I don't know the answer but you might try using ocamlbuild's mlpack and odocl features, and see how it does it. On Fri, Sep 11, 2009 at 11:47 AM, Alexey Rodriguez wrote: > Dear list, > > I am trying to build ocamldoc documentation for an ocaml project that > contains multiple packages (collections of modules built using > -for-pack and -pack). My current setup generates documentation for > each package but it won't generate hyperlinks to modules in other > packages (module not found errors). I tried using the -load and -dump > commands to allow ocamldoc see the ocamldoc-results of the referred to > package, but I still get problems. I suspect that the problem arises > because ocamldoc does not have a -pack option, so it always sees > modules in a flat way. So if you have package Pack1 with module A, and > module B in Pack2 which refers to Pack1.A.t, ocamldoc cannot solve > this reference because it does not know that module A is inside > another module called Pack1. > > The solutions I see right now seem to involve more effort than I am > willing to spend. So, before I embark on a task that might take too > long I would like to ask for tips on this. How do you perform ocamldoc > generation for projects with multiple packages? Thanks! > > Cheers, > > Alexey > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > --000e0cd2de12239d95047351bb30 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I don't know the answer but you might try using ocamlbuild's mlpack= and odocl features, and see how it does it.


On Fri, Sep 11, 2009 at 11:47 AM, Alexey Rodriguez <mrchebas@gma= il.com> wrote:
Dear list,

I am trying to build ocamldoc documentation for an ocaml project that
contains multiple packages (collections of modules built using
-for-pack and -pack). My current setup generates documentation for
each package but it won't generate hyperlinks to modules in other
packages (module not found errors). I tried using the -load and -dump
commands to allow ocamldoc see the ocamldoc-results of the referred to
package, but I still get problems. I suspect that the problem arises
because ocamldoc does not have a -pack option, so it always sees
modules in a flat way. So if you have package Pack1 with module A, and
module B in Pack2 which refers to Pack1.A.t, ocamldoc cannot solve
this reference because it does not know that module A is inside
another module called Pack1.

The solutions I see right now seem to involve more effort than I am
willing to spend. So, before I embark on a task that might take too
long I would like to ask for tips on this. How do you perform ocamldoc
generation for projects with multiple packages? Thanks!

Cheers,

Alexey

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.in= ria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

--000e0cd2de12239d95047351bb30--