File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ val render :
66
77val filepath : config :Config .t -> Odoc_document.Url.Path .t -> Fpath .t
88
9+ val items :
10+ config :Config .t ->
11+ resolve :Link .resolve ->
12+ Odoc_document.Types.Item .t list ->
13+ Html_types .flow5_without_header_footer Tyxml.Html .elt list
14+
915val doc :
1016 config :Config .t ->
1117 xref_base_uri :string ->
Original file line number Diff line number Diff line change @@ -34,12 +34,19 @@ let from_mld ~xref_base_uri ~resolver ~output ~warnings_options input =
3434 Odoc_xref2.Link. resolve_page ~filename: input_s env page
3535 |> Odoc_model.Error. handle_warnings ~warnings_options
3636 >> = fun resolved ->
37- let page = Odoc_document.Comment. to_ir resolved.content.elements in
37+ let page =
38+ match Odoc_document.Renderer. document_of_page ~syntax: OCaml resolved with
39+ | Page p -> p
40+ | Source_page _ -> assert false
41+ in
3842 let config =
3943 Odoc_html.Config. v ~semantic_uris: false ~indent: false ~flat: false
4044 ~open_details: false ~as_json: false ~remap: [] ()
4145 in
42- let html = Odoc_html.Generator. doc ~config ~xref_base_uri page in
46+ let html =
47+ Odoc_html.Generator. items ~config ~resolve: (Base xref_base_uri)
48+ (page.Odoc_document.Types.Page. preamble @ page.items)
49+ in
4350 let oc = open_out (Fs.File. to_string output) in
4451 let fmt = Format. formatter_of_out_channel oc in
4552
You can’t perform that action at this time.
0 commit comments