Did you know ... | Search Documentation: |
doc_man.pl -- Process SWI-Prolog HTML manuals |
ul
list that
reflects the location of Obj in the manual.Contents.html
for making the toplevel tree
that links to the individual files. Then we use
html_content_tree/2 to materialize the trees for the files.node(Object, ListOfTree).
f(Name/Arity)
display documentation of an arithmetic functionc(Function)
display documentation of a C API functionsection(Level, Number, Id, File)
Display a section of the manualsec(DocFile#Id)
Display a section of the manual (from short form)Options:
fail
, fail instead of displaying a
not-found message.false
, omit the synopsis linetrue
(default), include links to the parent object;
if false
, just emit the manual material.true
(default), display the navigation tree, otherwise
suppress it.The tricky part is that there are cases where multiple modules export the same predicate. We must find from the title of the manual section which library is documented.
/man?predicate=PI
.section(Level, NT, ID, FilePath)
section(Level, NT, ID, FilePath)#flag:Name
section(Level, NT, ID, FilePath)#gloss:Name
$ File#Name() Rewrite to /man/CAPI=Name
number
, title
or number_title
.