From: Maxence Guesdon <maxence.guesdon@inria.fr>
To: Dario Teixeira <darioteixeira@yahoo.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] File inclusion with Ocamldoc
Date: Tue, 14 Oct 2008 19:22:12 +0200 [thread overview]
Message-ID: <20081014192212.jranx5bddwc4woog@pops-rocq.inria.fr> (raw)
In-Reply-To: <595837.10580.qm@web54607.mail.re2.yahoo.com>
Dario Teixeira <darioteixeira@yahoo.com> a ?it :
> Hi,
Hello,
> I want to create a customised APIDOC starter page that includes
> links to child pages containing various tutorials for the API.
> Now, Ocamldoc already has a -intro option that allows an external
> file to be used as an APIDOC starter page. But I see no way
> to create a link to an external file from within this starter
> page, and to tell Ocamldoc to also process and include the
> external file. Does someone know of a straightforward solution
> for this problem?
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.
Example:
cat > file.txt
This is the {!File} file.
ocamldoc -html file.txt
Hope this helps,
Maxence Guesdon
> Thanks!
> Dario Teixeira
>
>
>
>
>
> _______________________________________________
> 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
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
next prev parent reply other threads:[~2008-10-14 17:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 13:51 Dario Teixeira
2008-10-14 17:22 ` Maxence Guesdon [this message]
2008-10-14 19:17 ` [Caml-list] " Dario Teixeira
2008-10-15 8:55 ` Romain Bardou
2008-10-15 14:43 ` Dario Teixeira
2008-10-15 15:05 ` Nicolas Pouillard
2008-10-16 15:27 ` Dario Teixeira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081014192212.jranx5bddwc4woog@pops-rocq.inria.fr \
--to=maxence.guesdon@inria.fr \
--cc=caml-list@yquem.inria.fr \
--cc=darioteixeira@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox