Skip to content

Top-level doc-comments of module types are discarded #478

Closed
@craigfe

Description

@craigfe

With the following set of files:

(* --- main_intf.ml --------------------------------------------- *)
module type S = sig
  (** Top-level comment *)

  val t : unit
  (** Item comment *)
end

(* --- main.ml -------------------------------------------------- *)
let t = ()

(* --- main.mli ------------------------------------------------- *)
include Main_intf.S (** @inline *)

the generated documentation for Main looks like the following:

image

i.e. the top-level doc-comment has been lost. As a workaround, it's possible to move top-level doc comments to the .mli file, but this splits the documentation across two files unnecessarily.

Is this rendering behaviour intentional?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions