From 2fcaef1517a4f1acf8dbf8b1d438532c4497f18e Mon Sep 17 00:00:00 2001 From: Paul-Elliot Date: Thu, 26 Oct 2023 17:27:24 +0200 Subject: [PATCH] Documentation for reference to extension declaration Signed-off-by: Paul-Elliot --- doc/ocamldoc_differences.mld | 1 + doc/odoc_for_authors.mld | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/ocamldoc_differences.mld b/doc/ocamldoc_differences.mld index b32bc6d23f..a7ce7073a2 100644 --- a/doc/ocamldoc_differences.mld +++ b/doc/ocamldoc_differences.mld @@ -51,6 +51,7 @@ Additionally we support extra annotations: - [class-type] is a replacement for [classtype] - [exn] is recognised as [exception] - [extension] refers to a type extension +- [extension-decl] refers to the declaration point of an extension constructor - [field] is a replacement for [recfield] - [instance-variable] refers to instance variables - [label] refers to labels introduced in anchors diff --git a/doc/odoc_for_authors.mld b/doc/odoc_for_authors.mld index 99629e3acd..36a9d9d6d5 100644 --- a/doc/odoc_for_authors.mld +++ b/doc/odoc_for_authors.mld @@ -388,6 +388,7 @@ The prefixes supported are: - [method] - [constructor] (and the equivalent deprecated prefix [const]) - [extension] +- [extension-decl] for refering to the declaration point of an extension constructor - [field] (and the equivalent deprecated prefix [recfield]) - [instance-variable] - [section] (and the equivalent deprecated prefix [label]) - for referring to headings