Skip to content

Commit 7770861

Browse files
panglesdjonludlam
authored andcommitted
occurrence: comment code for when documentation links are readded
Signed-off-by: Paul-Elliot <[email protected]>
1 parent 91eef72 commit 7770861

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/document/generator.ml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,18 @@ module Make (Syntax : SYNTAX) = struct
254254

255255
let to_link { Lang.Source_info.documentation; implementation } =
256256
let documentation =
257-
let open Paths.Path.Resolved in
258-
match documentation with
259-
| Some (`Resolved p) when not (is_hidden (p :> t)) -> (
260-
let id = identifier (p :> t) in
261-
match Url.from_identifier ~stop_before:false id with
262-
| Ok link -> Some link
263-
| _ -> None)
264-
| _ -> None
257+
(* Since documentation link are not rendered, we comment the code to
258+
extract the href, and always output [None] *)
259+
ignore documentation;
260+
None
261+
(* let open Paths.Path.Resolved in *)
262+
(* match documentation with *)
263+
(* | Some (`Resolved p) when not (is_hidden (p :> t)) -> ( *)
264+
(* let id = identifier (p :> t) in *)
265+
(* match Url.from_identifier ~stop_before:false id with *)
266+
(* | Ok link -> Some link *)
267+
(* | _ -> None) *)
268+
(* | _ -> None *)
265269
in
266270
let implementation =
267271
match implementation with

0 commit comments

Comments
 (0)