···134134 (Forest_graph.in_degree reparsed.import_graph vtx > 0)
135135136136let test_omits_paths ~env () =
137137- let forest = Driver.batch_run ~env ~config ~dev:false in
137137+ let forest = Driver.batch_run ~env ~config ~dev:false ~config_path:"" in
138138 let path =
139139 match forest.@{URI.of_string_exn "http://forest.local/t8/"} with
140140 | Some (Article {frontmatter = {source_path; _}; _}) -> source_path
+1-1
lib/compiler/test/Test_errors.ml
···3333 let test () =
3434 let@ tmp_dir = with_test_forest ~env ~raw_trees ~config in
3535 Sys.chdir (Eio.Path.native_exn tmp_dir);
3636- let forest = Driver.batch_run ~env ~config ~dev:false in
3636+ let forest = Driver.batch_run ~env ~config ~dev:false ~config_path:"" in
3737 Alcotest.(check @@ list action)
3838 ""
3939 [
+1-1
lib/search/Search_engine.ml
···5656 Result.get_ok @@ Config_parser.parse_forest_config_file "forest.toml"
5757 in
5858 let dev = true in
5959- let forest = Driver.batch_run ~env ~dev ~config in
5959+ let forest = Driver.batch_run ~env ~dev ~config ~config_path:"forest.toml" in
6060 let articles = List.of_seq @@ State.get_all_articles forest in
6161 let index = Index.create articles in
6262 let size = Obj.reachable_words @@ Obj.repr index in
+4-4
lib/server/Server.ml
···200200 in
201201 (H.div [] [P.txt "%s" error], `OK)
202202 | Ok config ->
203203- let f = Driver.batch_run ~env ~config ~dev:true in
203203+ let f = Driver.batch_run ~env ~config ~dev:true ~config_path:filename in
204204 forest := Some f;
205205 let home =
206206 match f.@{Config.home_uri config} with
···283283 let forest =
284284 match config with
285285 | None -> ref None
286286- | Some config -> (
287287- match Config_parser.parse_forest_config_file config with
286286+ | Some config_path -> (
287287+ match Config_parser.parse_forest_config_file config_path with
288288 | Error _ -> ref None
289289 | Ok config ->
290290- let forest = Driver.batch_run ~env ~dev ~config in
290290+ let forest = Driver.batch_run ~env ~dev ~config ~config_path in
291291 ref (Some forest))
292292 in
293293 let socket =