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 4d5d7c4 commit f5acc73Copy full SHA for f5acc73
src/driver/odoc_units_of.ml
@@ -270,7 +270,18 @@ let packages ~dirs ~extra_paths ~remap (pkgs : Packages.t list) : t list =
270
[ Landing_pages.package ~dirs ~pkg ~index ]
271
in
272
let src_index :> t list =
273
- if List.length pkg.libraries > 0 then
+ if
274
+ (* Some library has a module which has an implementation which has a source *)
275
+ List.exists
276
+ (fun lib ->
277
278
+ (fun m ->
279
+ match m.Packages.m_impl with
280
+ | Some { mip_src_info = Some _; _ } -> true
281
+ | _ -> false)
282
+ lib.Packages.modules)
283
+ pkg.libraries
284
+ then
285
let index = index_of pkg in
286
[ Landing_pages.src ~dirs ~pkg ~index ]
287
else []
0 commit comments