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=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 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 38733BBAF for ; Wed, 15 Oct 2008 10:54:40 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmoDANNL9UiBrw8EiGdsb2JhbACTXwEBARUirG2Baw X-IronPort-AV: E=Sophos;i="4.33,415,1220220000"; d="scan'208";a="16099929" Received: from ext.lri.fr ([129.175.15.4]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 15 Oct 2008 10:54:40 +0200 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id 04628A491D for ; Wed, 15 Oct 2008 10:54:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at lri.fr Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kIm3yfLRi6mf for ; Wed, 15 Oct 2008 10:54:39 +0200 (CEST) Received: from smtp.lri.fr (vhost3-23 [129.175.3.23]) by ext.lri.fr (Postfix) with ESMTP id E0C49A48AE for ; Wed, 15 Oct 2008 10:54:39 +0200 (CEST) Received: from [129.175.4.107] (lri4-107 [129.175.4.107]) by smtp.lri.fr (Postfix) with ESMTP id DD5AFE0546 for ; Wed, 15 Oct 2008 10:54:39 +0200 (CEST) Message-ID: <48F5AFED.5050806@lri.fr> Date: Wed, 15 Oct 2008 10:55:09 +0200 From: Romain Bardou User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: caml-list Subject: Re: [Caml-list] File inclusion with Ocamldoc References: <552539.25055.qm@web54602.mail.re2.yahoo.com> In-Reply-To: <552539.25055.qm@web54602.mail.re2.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; lri:01 ocamldoc:01 ocamldoc:01 mli:01 caml-list:01 module:03 inclusion:04 fix:05 truc:05 truc:05 incidentally:10 maybe:10 file:11 file:11 generation:12 >> You can use .txt files to do this. Simply type ocamldoc >> comment (without (** *)) in a file.txt file and pass it to >> ocamldoc like any .ml or .mli file. This will be considered >> as a File module and you can refer to it by {!File} from any >> ocamldoc comment. > > Excellent! Thanks for the tip. Incidentally, the 3.10 version > of Ocamlbuild does not support the generation of documentation > from implementation files. Will 3.11 fix this? It works for me with the 3.10.1. I just tried to write a file test.ml, and a file truc.odocl with "Test" in it, and then ran ocamlbuild : ocamlbuild truc.docdic/index.html And it worked. Or maybe I didn't understand what you want? -- Romain Bardou