File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,16 @@ end = struct
86
86
match Comment. find_zero_heading entry.doc with
87
87
| Some t -> t
88
88
| None ->
89
- Location_. [ at (span [] ) (`Word (Id. name entry.id)) ]
89
+ let name =
90
+ match entry.id.iv with
91
+ | `LeafPage (Some parent, name)
92
+ when String. equal
93
+ (Names.PageName. to_string name)
94
+ " index" ->
95
+ Id. name parent
96
+ | _ -> Id. name entry.id
97
+ in
98
+ Location_. [ at (span [] ) (`Word name) ]
90
99
in
91
100
Comment. link_content title
92
101
| _ ->
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ let run mode
258
258
(* Grep log index and co commands *)
259
259
grep_log `Count_occurrences index_grep;
260
260
grep_log `Count_occurrences index_grep;
261
- grep_log `Index (* index_grep *) ( Some " " ) ;
261
+ grep_log `Index index_grep;
262
262
263
263
List. iter
264
264
(fun { Cmd_outputs. log_dest; prefix; run } ->
You can’t perform that action at this time.
0 commit comments