File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ let run_inner ~odoc_dir ~odocl_dir ~index_dir ~mld_dir ~compile_grep ~link_grep
69
69
Compile. html_generate ~occurrence_file ~remaps ~generate_json
70
70
~simplified_search_output: false html_dir linked
71
71
in
72
+ List. iter (fun pkg -> Status. file ~html_dir ~pkg () ) all;
72
73
let _ = Odoc. support_files html_dir in
73
74
Stats. stats.finished < - true ;
74
75
() )
Original file line number Diff line number Diff line change @@ -38,14 +38,7 @@ let generate_status ~html_dir pkg =
38
38
pkg.Packages. libraries;
39
39
redirections
40
40
in
41
- let status = Status. json ~html_dir ~pkg ~redirections () in
42
- let status = Yojson.Safe. pretty_to_string status in
43
- let status_path = Fpath. (html_dir // Odoc_unit. pkg_dir pkg / " status.json" ) in
44
- match Bos.OS.File. write status_path status with
45
- | Ok () -> ()
46
- | Error (`Msg msg ) ->
47
- Logs. err (fun m ->
48
- m " Error when generating status.json for %s: %s" pkg.name msg)
41
+ Status. file ~html_dir ~pkg ~redirections ()
49
42
50
43
let run package_name blessed actions odoc_dir odocl_dir
51
44
{ Common_args. verbose; html_dir; nb_workers; odoc_bin; odoc_md_bin; _ } =
Original file line number Diff line number Diff line change @@ -42,3 +42,13 @@ let json ~html_dir ~pkg ?(redirections = Hashtbl.create 0) () =
42
42
(" failed" , failed);
43
43
(" redirections" , redirections);
44
44
]
45
+
46
+ let file ~html_dir ~pkg ?(redirections = Hashtbl. create 0 ) () =
47
+ let json = json ~html_dir ~pkg ~redirections () in
48
+ let json = Yojson.Safe. pretty_to_string json in
49
+ let status_path = Fpath. (html_dir // Odoc_unit. pkg_dir pkg / " status.json" ) in
50
+ match Bos.OS.File. write status_path json with
51
+ | Ok () -> ()
52
+ | Error (`Msg msg ) ->
53
+ Logs. err (fun m ->
54
+ m " Error when generating status.json for %s: %s" pkg.name msg)
You can’t perform that action at this time.
0 commit comments