File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -143,23 +143,19 @@ let compile_index ?(ignore_output = false) ~output_file ~json ~docs ~libs () =
143
143
Cmd_outputs. (
144
144
add_prefixed_output cmd link_output (Fpath. to_string output_file) lines)
145
145
146
- let html_generate ~output_dir ?index ?(ignore_output = false ) ?( assets = [] )
146
+ let html_generate ~output_dir ?index ?(ignore_output = false )
147
147
?(search_uris = [] ) ~input_file :file () =
148
148
let open Cmd in
149
149
let index =
150
150
match index with None -> empty | Some idx -> v " --index" % p idx
151
151
in
152
- let assets =
153
- List. fold_left (fun acc filename -> acc % " --asset" % filename) empty assets
154
- in
155
152
let search_uris =
156
153
List. fold_left
157
154
(fun acc filename -> acc % " --search-uri" % p filename)
158
155
empty search_uris
159
156
in
160
157
let cmd =
161
- ! odoc % " html-generate" % p file %% assets %% index %% search_uris % " -o"
162
- % output_dir
158
+ ! odoc % " html-generate" % p file %% index %% search_uris % " -o" % output_dir
163
159
in
164
160
let desc = Printf. sprintf " Generating HTML for %s" (Fpath. to_string file) in
165
161
let lines = Cmd_outputs. submit desc cmd None in
@@ -171,7 +167,7 @@ let html_generate_asset ~output_dir ?(ignore_output = false) ~input_file:file
171
167
~asset_path () =
172
168
let open Cmd in
173
169
let cmd =
174
- ! odoc % " html-generate" % p file % " -o" % output_dir % " --asset-path"
170
+ ! odoc % " html-generate-asset " % p file % " -o" % output_dir % " --asset-path"
175
171
% p asset_path
176
172
in
177
173
let desc = Printf. sprintf " Copying asset %s" (Fpath. to_string file) in
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ val html_generate :
50
50
output_dir :string ->
51
51
?index : Fpath .t ->
52
52
?ignore_output : bool ->
53
- ?assets : string list ->
54
53
?search_uris : Fpath .t list ->
55
54
input_file :Fpath .t ->
56
55
unit ->
You can’t perform that action at this time.
0 commit comments