diff options
author | Maxence Guesdon <maxence.guesdon@inria.fr> | 2004-05-23 10:41:51 +0000 |
---|---|---|
committer | Maxence Guesdon <maxence.guesdon@inria.fr> | 2004-05-23 10:41:51 +0000 |
commit | 617fd50c4edd650ce3fa153317d429de24141633 (patch) | |
tree | 3cce2c49bfc8ec121595b767273aab5edd6ae0b2 /ocamldoc/odoc_text.ml | |
parent | e364e6c25459d37ef058accd414c5555a7b30bb6 (diff) | |
download | ocaml-617fd50c4edd650ce3fa153317d429de24141633.tar.gz |
new ocamldoc syntax elements : {\!modules: M1 M2 ...} to insert the table of modules, {\!indexlist} to insert the list of indexes; these elements are used only in the html generator; the -intro option is now used in html to describe the whole index page
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6313 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'ocamldoc/odoc_text.ml')
-rw-r--r-- | ocamldoc/odoc_text.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ocamldoc/odoc_text.ml b/ocamldoc/odoc_text.ml index b83c88a19f..85578098b7 100644 --- a/ocamldoc/odoc_text.ml +++ b/ocamldoc/odoc_text.ml @@ -134,6 +134,12 @@ module Texter = ) | Superscript t -> p b "{^" ; p_text b t ; p b "}" | Subscript t -> p b "{_" ; p_text b t ; p b "}" + | Module_list l -> + p b "{!modules:"; + List.iter (fun s -> p b " %s" s) l; + p b "}" + | Index_list -> + p b "{!indexlist}" let string_of_text s = let b = Buffer.create 256 in |