Skip to content

Fix duplicate indexing #1240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/odoc/indexing.ml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ let compile out_format ~output ~warnings_options ~occurrences ~lib_roots
})
~open_modules:[]
in
(* if files = [] && then Error (`Msg "No .odocl files were included") *)
(* else *)
let pages =
List.map
(fun (page_root, _) ->
Expand Down Expand Up @@ -180,18 +178,6 @@ let compile out_format ~output ~warnings_options ~occurrences ~lib_roots
{ Odoc_index.name = library; units })
lib_roots
in
let includes_rec =
List.rev_append (List.map snd page_roots) (List.map snd lib_roots)
in
let files =
List.rev_append files
(includes_rec
|> List.map (fun include_rec ->
Fs.Directory.fold_files_rec ~ext:"odocl"
(fun files file -> file :: files)
[] include_rec)
|> List.concat)
in
let content = { Odoc_index.pages; libs } in
match out_format with
| `JSON -> compile_to_json ~output ~occurrences files
Expand Down
Loading