blob: 4649c9504b6814ddf38faaca3e9ef7f889318b0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
(***********************************************************************)
(* OCamldoc *)
(* *)
(* Maxence Guesdon, projet Gallium, INRIA Rocquencourt *)
(* *)
(* Copyright 2010 Institut National de Recherche en Informatique et *)
(* en Automatique. All rights reserved. This file is distributed *)
(* under the terms of the Q Public License version 1.0. *)
(* *)
(***********************************************************************)
(** The types of generators. *)
(** The minimal class type of documentation generators. *)
class type doc_generator =
object method generate : Odoc_module.t_module list -> unit end;;
(** The module type of minimal generators. *)
module type Base = sig
class generator : doc_generator
end;;
(** Various ways to create a generator. *)
type generator =
| Html of (module Odoc_html.Html_generator)
| Latex of (module Odoc_latex.Latex_generator)
| Texi of (module Odoc_texi.Texi_generator)
| Man of (module Odoc_man.Man_generator)
| Dot of (module Odoc_dot.Dot_generator)
| Other of (module Base)
;;
val get_minimal_generator : generator -> doc_generator
|