Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Signed-off-by: Paul-Elliot <[email protected]>
  • Loading branch information
panglesd committed Jul 9, 2024
1 parent cdfb404 commit 2bc3f73
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/loader/dune
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@
(preprocess
(action
(run %{bin:cppo} -V OCAML:%{ocaml_version} %{input-file})))
(libraries odoc_model odoc-parser syntax_highlighter odoc_document odoc_utils))
(libraries
odoc_model
odoc-parser
syntax_highlighter
odoc_document
odoc_utils))
4 changes: 3 additions & 1 deletion src/odoc/rendering.ml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ let render_document renderer ~sidebar ~output:root_dir ~extra_suffix ~extra doc
| Asset { url; _ } -> url
in
let sidebar =
Odoc_utils.Option.map (fun sb -> Odoc_document.Sidebar.to_block sb url) sidebar
Odoc_utils.Option.map
(fun sb -> Odoc_document.Sidebar.to_block sb url)
sidebar
in
let pages = renderer.Renderer.render extra sidebar doc in
Renderer.traverse pages ~f:(fun filename content ->
Expand Down
2 changes: 1 addition & 1 deletion src/utils/odoc_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ end

module Option = struct
let map f = function None -> None | Some x -> Some (f x)
end
end

0 comments on commit 2bc3f73

Please sign in to comment.