···222222 prl " )";
223223 prl " (action";
224224 prl " (progn";
225225- (* Build sherlodoc search index from all .odocl files, then generate
226226- the search JS bundle. Both must exist before html-generate so
227227- that --search-uri can reference them. *)
225225+ (* Build sherlodoc search index from all .odocl files (site pages +
226226+ reference API docs), then generate the search JS bundle.
227227+ We use --file-list because the reference docs have 1000+ odocl files
228228+ which would overflow the command line. *)
228229 prl " (system \"mkdir -p _html\")";
229229- pr " (run sherlodoc index --format js -o _html/sherlodoc-db.js";
230230+ prl " (system \"{ find ../_doc/_odocl -name '*.odocl' 2>/dev/null; } > _html/.sherlodoc-files.txt\")";
231231+ pr " (system \"sherlodoc index --format js -o _html/sherlodoc-db.js --file-list _html/.sherlodoc-files.txt";
230232 List.iter (fun rel -> pr " %s" (odocl_target rel)) mld_files;
231231- prl ")";
233233+ prl "\")";
232234 prl " (run sherlodoc js _html/sherlodoc.js)";
233235 (* HTML generate pages *)
234236 List.iter