File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ let pkg_dir top_dir pkg_name = maybe_prepend_top top_dir Fpath.(v pkg_name)
72
72
73
73
let parent_of_lib pkg_dir lib_name = Fpath. (pkg_dir / " lib" / lib_name)
74
74
75
- let parent_of_pkg pkg_dir = Fpath. (pkg_dir / " doc" )
75
+ let parent_of_pages pkg_dir = Fpath. (pkg_dir / " doc" )
76
76
77
77
let parent_of_src pkg_dir lib_name = Fpath. (pkg_dir / " src" / lib_name)
78
78
@@ -336,7 +336,7 @@ let of_libs ~packages_dir libs =
336
336
| None -> acc
337
337
| Some rel_path ->
338
338
let pkg_dir = pkg_dir packages_dir pkg_name in
339
- let id = Fpath. (parent_of_pkg pkg_dir // rel_path) in
339
+ let id = Fpath. (parent_of_pages pkg_dir // rel_path) in
340
340
let mld_parent_id = id |> Fpath. parent |> Fpath. rem_empty_seg in
341
341
let page_name = Fpath. (rem_ext mld_path |> filename) in
342
342
let odoc_file =
@@ -404,7 +404,7 @@ let of_libs ~packages_dir libs =
404
404
mlds = update_mlds pkg.mlds libraries;
405
405
}
406
406
| None ->
407
- let mld_odoc_dir = parent_of_pkg pkg_dir in
407
+ let mld_odoc_dir = parent_of_pages pkg_dir in
408
408
Some
409
409
{
410
410
name = pkg.name;
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ type libty = {
67
67
modules : modulety list ;
68
68
}
69
69
70
- val parent_of_pkg : Fpath .t -> Fpath .t
70
+ val parent_of_pages : Fpath .t -> Fpath .t
71
+ (* * Given a [pkg_dir], returns a [mld_odoc_dir]. *)
71
72
72
73
module Lib : sig
73
74
val v :
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ let process_package pkg =
71
71
| None -> None
72
72
| Some rel_path ->
73
73
let id =
74
- Fpath. (Packages. parent_of_pkg (top_dir pkg) // rel_path)
74
+ Fpath. (Packages. parent_of_pages (top_dir pkg) // rel_path)
75
75
in
76
76
let mld_parent_id =
77
77
id |> Fpath. parent |> Fpath. rem_empty_seg
@@ -168,7 +168,7 @@ let process_package pkg =
168
168
libdirs_without_meta
169
169
in
170
170
Printf. eprintf " Found %d metas" (List. length metas);
171
- let mld_odoc_dir = Packages. parent_of_pkg (top_dir pkg) in
171
+ let mld_odoc_dir = Packages. parent_of_pages (top_dir pkg) in
172
172
let libraries = List. flatten libraries in
173
173
let libraries = List. flatten extra_libraries @ libraries in
174
174
{
You can’t perform that action at this time.
0 commit comments