I tried using doc_save(., []), but it does not generate separate pages for predicates, while still generating the respective hrefs in index.html.
Suppose I have a prolog file test.pl I want to have a documentation for,
%! win is det.
%
% win is always true.
win.
%! зрада is det.
%
% зрада завжди заврешується невдачею.
зрада :- !, fail.
I run swipl -g '[test], doc_save(., []), halt.' which generates a bunch of files in doc/, including index.html and test.html. The problem is that it does not contain separate files describing each predicate. That is despite the fact that we have, in index.html,
<tr class="public"><td><a href="/pldoc/doc_for?object=win/0">win/0</a></td><td class="summary">win is always true.</td><td align="right"><span style="white-space: nowrap"></span></td></tr>
refering to a URL "/pldoc/doc_for?object=win/0" which is normally created by JavaScript making additional requests to the server, as far as I understand.