Hi, > So, ocamldoc doesn't find "intro.txt". This is because this > file is not copied into the _build directory by ocamlbuild. > You need to explain to ocamlbuild, in your plugin, that your > target (lambdoc.docdir/index.html) depends on "intro.txt", > otherwise ocamlbuild won't copy the file. Even if you copy > the file yourself into the _build directory, ocamlbuild > might delete it. > > If I remember correctly there is a function of the plugin > API, called "dep" if I'm not mistaken, which does exactly > this.
Thanks for the reply. Ideally one should be able to specify that info in the _tags file and/or with other special files. And I reckon that Ocamlbuild probably already supports that. By the way, I have managed to get Ocamlbuild to invoke Ocamldoc for the source code files only (no intro or tutorials) by creating a lambdoc.odocl file whose contents are the same as lambdoc.mlpack's. However, the compilation fails with a mysterious "analyse_module: parsetree and typedtree don't match" error: + ocamlfind ocamldoc -dump lambdoc/document_ast.odoc -package extlib -package ocsigen.xhtml -package pcre -package sexplib -package threads -package unix -package xml-light -I lambdoc -I lambdoc/readers -I lambdoc/writers -I lambdoc/readers/lambtex_reader_impl lambdoc/document_ast.ml analyse_module: parsetree and typedtree don't match. 1 error(s) encountered Command exited with code 1. Any ideas? Cheers, Dario _______________________________________________ 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