File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,9 @@ let extractDocs ~path ~debug =
304
304
| Module (Ident p ) ->
305
305
(* module Whatever = OtherModule *)
306
306
let aliasToModule = p |> pathIdentToString in
307
- let modulePath = aliasToModule :: modulePath in
307
+ let id =
308
+ (modulePath |> List. rev |> List. hd) ^ " ." ^ item.name
309
+ in
308
310
let items =
309
311
match
310
312
ProcessCmt. fileForModule ~package: full.package
@@ -313,14 +315,14 @@ let extractDocs ~path ~debug =
313
315
| None -> []
314
316
| Some file ->
315
317
let docs =
316
- extractDocsForModule ~module Path file.structure
318
+ extractDocsForModule ~module Path:[id] file.structure
317
319
in
318
320
docs.items
319
321
in
320
322
Some
321
323
(ModuleAlias
322
324
{
323
- id = modulePath |> List. rev |> SharedTypes. ident ;
325
+ id;
324
326
name = item.name;
325
327
items;
326
328
docstring = item.docstring |> List. map String. trim;
You can’t perform that action at this time.
0 commit comments