We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 454615b commit df626e0Copy full SHA for df626e0
src/driver/landing_pages.ml
@@ -1,13 +1,12 @@
1
open Packages
2
open Odoc_unit
3
-let write_file file content = Bos.OS.File.write file content |> Result.get_ok
4
5
let make_unit ~odoc_dir ~odocl_dir ~mld_dir ~output_dir rel_path ~content
6
?(include_dirs = []) ~pkgname ~pkg_args () =
7
let input_file = Fpath.(mld_dir // rel_path / "index.mld") in
8
let odoc_file = Fpath.(odoc_dir // rel_path / "page-index.odoc") in
9
let odocl_file = Fpath.(odocl_dir // rel_path / "page-index.odocl") in
10
- let () = write_file input_file content in
+ let () = Util.write_file input_file (String.split_on_char '\n' content) in
11
let parent_id = rel_path |> Odoc.Id.of_fpath in
12
{
13
parent_id;
0 commit comments