Url.Anchor
type kind = [
| Path.kind
| `Section
| `Type
| `Extension
| `ExtensionDecl
| `Exception
| `Method
| `Val
| `Constructor
| `Field
| `SourceAnchor
]
val pp_kind : Format.formatter -> kind -> unit
val string_of_kind : kind -> string
type t = {
page : Path.t;
anchor : string;
Anchor in page where the element is attached
page
kind : kind;
What kind of element the path points to. e.g. "module", "module-type", "exception", ...
}
val from_identifier : Odoc_model.Paths.Identifier.t -> (t, Error.t) Result.result
val polymorphic_variant : type_ident:Odoc_model.Paths.Identifier.t -> Odoc_model.Lang.TypeExpr.Polymorphic_variant.element -> t
val extension_decl : Odoc_model.Lang.Extension.t -> t
Anchor for the extension declaration item itself, which doesn't have an identifier in the model.
val source_anchor : Path.t -> string -> t