File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ let html_generate output_dir linked =
236
236
match l.kind with
237
237
| `Intf { hidden = true ; _ } -> ()
238
238
| `Impl { src_path; _ } ->
239
- Odoc. html_generate_impl ~search_uris: [] ~output_dir ~input_file
239
+ Odoc. html_generate_source ~search_uris: [] ~output_dir ~input_file
240
240
~source: src_path () ;
241
241
Atomic. incr Stats. stats.generated_units
242
242
| _ ->
Original file line number Diff line number Diff line change @@ -153,26 +153,24 @@ let html_generate ~output_dir ?index ?(ignore_output = false) ?(assets = [])
153
153
Cmd_outputs. (
154
154
add_prefixed_output cmd generate_output (Fpath. to_string file) lines)
155
155
156
- let html_generate_impl ~output_dir ?(ignore_output = false ) ? source
156
+ let html_generate_source ~output_dir ?(ignore_output = false ) ~ source
157
157
?(search_uris = [] ) ~input_file :file () =
158
158
let open Cmd in
159
- let source =
160
- match source with None -> empty | Some source -> v " --source" % p source
161
- in
159
+ let file = v " --impl" % p file in
162
160
let search_uris =
163
161
List. fold_left
164
162
(fun acc filename -> acc % " --search-uri" % p filename)
165
163
empty search_uris
166
164
in
167
165
let cmd =
168
- ! odoc % " html-generate-impl" %% source % p file %% search_uris % " -o"
166
+ ! odoc % " html-generate-impl" %% file % p source %% search_uris % " -o"
169
167
% output_dir
170
168
in
171
- let desc = Printf. sprintf " Generating HTML for %s" (Fpath. to_string file ) in
169
+ let desc = Printf. sprintf " Generating HTML for %s" (Fpath. to_string source ) in
172
170
let lines = Cmd_outputs. submit desc cmd None in
173
171
if not ignore_output then
174
172
Cmd_outputs. (
175
- add_prefixed_output cmd generate_output (Fpath. to_string file ) lines)
173
+ add_prefixed_output cmd generate_output (Fpath. to_string source ) lines)
176
174
177
175
let support_files path =
178
176
let open Cmd in
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ val html_generate :
54
54
unit ->
55
55
unit
56
56
57
- val html_generate_impl :
57
+ val html_generate_source :
58
58
output_dir :string ->
59
59
?ignore_output : bool ->
60
- ? source :Fpath .t ->
60
+ source :Fpath .t ->
61
61
?search_uris : Fpath .t list ->
62
62
input_file :Fpath .t ->
63
63
unit ->
You can’t perform that action at this time.
0 commit comments