PublicShow sourcedoc_man.pl -- Process SWI-Prolog HTML manuals

Source clean_man_index is det
Clean already loaded manual index.
Source index_man_directory(Dir, +Options) is det
Index the HTML directory Dir. Options are:
class(Class)
Define category of the found objects.

Remaining Options are passed to absolute_file_name/3.

Source index_man_file(+Class, +File)
Collect the documented objects from the SWI-Prolog manual file File.
Source current_man_object(?Object) is nondet
Source man_content_tree(+Dir, -Tree) is det
Compute the content tree for a multi-file HTML document. We do this by processing 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.
Source man_packages_tree(-Tree) is det
Tree is the content tree of all packages
Source man_page(+Obj, +Options)// is semidet
Produce a Prolog manual page for Obj. The page consists of a link to the section-file and a search field, followed by the predicate description. Obj is one of:
  • Name/Arity Predicate indicator: display documentation of the predicate
  • f(Name/Arity) display documentation of an arithmetic function
  • c(Function) display documentation of a C API function
  • section(Level, Number, Id, File) Display a section of the manual
  • sec(DocFile#Id) Display a section of the manual (from short form)

Options:

no_manual(Action)
If Action = fail, fail instead of displaying a not-found message.
links(Bool)
If true (default), include links to the parent object; if false, just emit the manual material.
Source man_overview(+Options)// is det
Provide a toplevel overview on the manual: the reference manual and the available packages.
Source prolog:doc_object_link(+Obj, +Options)//[multifile]
Provide the HTML to describe Obj for linking purposes.
Source prolog:doc_object_href(+Object, -HREF) is semidet[multifile]
Produce a HREF for section objects.