···193193194194let export ~env ~host ~asset_dirs : unit =
195195 let@ () = Reporter.profile "Export forest" in
196196+ let all_resources = List.of_seq @@ F.get_all_resources () in
197197+ let all_articles = List.filter_map (function F.Article article -> Some article | _ -> None) all_resources in
198198+196199 let cwd = Eio.Stdenv.cwd env in
197197- let trees = FU.get_all_articles () in
198198- let result = Json_client.render_trees ~host trees in
200200+ let result = Json_client.render_trees ~host all_articles in
199201 let dir = Eio.Path.(cwd / "export" / host) in
200202 Eio.Path.mkdirs ~exists_ok: true ~perm: 0o755 dir;
201203 Eio.Path.save ~create: (`Or_truncate 0o644) Eio.Path.(dir / "forest.json") result;