From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p5AG08H2007852 for ; Fri, 10 Jun 2011 18:00:08 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag8DADA+8k3RVaE2kGdsb2JhbAA8AQMShEmhdAgUAQEBAQkJDQcUBCGmTIJLi3uCf4RGiR0BAQMGgSWDboEKBJEri1o8gTGCLA X-IronPort-AV: E=Sophos;i="4.65,348,1304287200"; d="scan'208";a="96570874" Received: from mail-fx0-f54.google.com ([209.85.161.54]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 10 Jun 2011 18:00:00 +0200 Received: by fxm11 with SMTP id 11so3525953fxm.27 for ; Fri, 10 Jun 2011 09:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=mu1xbqhvsYahwMoqfd7J6/56esZsExzv/+7xI8VV3B4=; b=gz3LN6EoC3aaDwA61EZ4ux/YyceeKztW/vEQN72i1+1mXx0QS9vGzfLr0J7kKi29tt sBQ0mFBMkyreGvEZ7T1PkH48mDBO9evpYyUHmYKybx1cda9+qW62egaezH0i9RLj4UM/ Qj8KDkpg+7PiPyWOnUFEoL/FcQ6Nny9jGhMMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=yAYIan3wU4qCzmcGD5Szc5Fcz8/dmfbMHTSbkvBJ7avaZw6oEymfX/YgLwRK5IG2b0 FlyuDi3/CNOztINSE7xPtxf+NKkfwx+DTeqfF0TKy8XH8WvcgzRJC+ceC0ss2W1wLWPz SNqSiHnJFFYCXfk6ZcNjw0QTBDmx+Q/qOoQio= MIME-Version: 1.0 Received: by 10.223.59.92 with SMTP id k28mr2200564fah.27.1307721600088; Fri, 10 Jun 2011 09:00:00 -0700 (PDT) Sender: till.varoquaux@gmail.com Received: by 10.223.72.13 with HTTP; Fri, 10 Jun 2011 09:00:00 -0700 (PDT) Date: Fri, 10 Jun 2011 12:00:00 -0400 X-Google-Sender-Auth: VZAe9xhLqCl4EwUVwqbjylql3vo Message-ID: From: Till Varoquaux To: Caml-list List Content-Type: text/plain; charset=UTF-8 X-Validation-by: till@pps.jussieu.fr Subject: [Caml-list] Using a custom ocamldoc html with ocamlbuild Hello everyone. I am currently trying to cajole ocamlbuild into using a custom generator. Adding the extra command line arguments to load the generator isn't hard: flag ["doc";"ocaml"] & S[A"-i";A "+custom";A "my_gen.cmo"] The tricky part is removing the -html flag that is passed to ocamldoc. As far as I can tell there's no easy to do so (Flags.remove does not actually allow you to do that). Maybe there's a way I could remove the "extension:html" tag and therefore avoid triggering the rule that adds -html? All best, Till