Skip to content

Commit 996e661

Browse files
committed
Driver: fix assets
1 parent f04cce9 commit 996e661

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/driver/odoc.ml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,23 +143,19 @@ let compile_index ?(ignore_output = false) ~output_file ~json ~docs ~libs () =
143143
Cmd_outputs.(
144144
add_prefixed_output cmd link_output (Fpath.to_string output_file) lines)
145145

146-
let html_generate ~output_dir ?index ?(ignore_output = false) ?(assets = [])
146+
let html_generate ~output_dir ?index ?(ignore_output = false)
147147
?(search_uris = []) ~input_file:file () =
148148
let open Cmd in
149149
let index =
150150
match index with None -> empty | Some idx -> v "--index" % p idx
151151
in
152-
let assets =
153-
List.fold_left (fun acc filename -> acc % "--asset" % filename) empty assets
154-
in
155152
let search_uris =
156153
List.fold_left
157154
(fun acc filename -> acc % "--search-uri" % p filename)
158155
empty search_uris
159156
in
160157
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
163159
in
164160
let desc = Printf.sprintf "Generating HTML for %s" (Fpath.to_string file) in
165161
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
171167
~asset_path () =
172168
let open Cmd in
173169
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"
175171
% p asset_path
176172
in
177173
let desc = Printf.sprintf "Copying asset %s" (Fpath.to_string file) in

src/driver/odoc.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ val html_generate :
5050
output_dir:string ->
5151
?index:Fpath.t ->
5252
?ignore_output:bool ->
53-
?assets:string list ->
5453
?search_uris:Fpath.t list ->
5554
input_file:Fpath.t ->
5655
unit ->

0 commit comments

Comments
 (0)