
doc_html.pl -- PlDoc HTML backendThis module translates the Herbrand term from the documentation extracting module doc_wiki.pl into HTML+CSS.
doc_for_file(+File, +Options) is dettrue (default), only emit documentation for
exported predicates.true, provide edit buttons. Default, these buttons
are suppressed.
doc_resources(+Options)// is detdoc_files.pl. A bit hacky ...
doc_file_objects(+FileSpec, -File, -Objects, -FileOptions, +Options) is detfile(Title:string, Comment:string)module(Module:atom)list(predicate_indicator)Objects contains
doc(PI:predicate_indicator, File:Line, Comment)We distinguish three different states for FileSpec:
xref_doc_object(File, DocObject) is nondet[private]
ensure_doc_objects(+File) is det
module_info(+File, -ModuleOptions, +OtherOptions) is detmodule(Name), public(Exports) to OtherOptions if
File is a module file.
doc_hide_private(+Objs, +Public, +Options)
obj(+Term, -Object) is det[private]
private(+Obj, +Options) is semidet
multifile(+Obj, +Options) is semidet
public(+Options, +Options)[private]
file_info(+Comments, -RestComment, -FileOptions, +OtherOptions) is det[private]file(Title, Comment) to OtherOptions if available.
file_header(+File, +Options)// is det
file_title(+Title:list, +File, +Options)// is det[private]
reload_button(+File, +Base, +Options)// is det[private]
edit_button(+File, +Options)// is det
zoom_button(BaseName, +Options)// is det
source_button(+File, +Options)// is det
objects(+Objects:list, +Options)// is dettrue, provide a navitation tree.
object(+Spec, +ModeIn, -ModeOut, +Options)// is det[private]
need_mode(+Mode:atom, +Stack:list, -NewStack:list)// is det[private]
undocumented(+File, +Objects, +Options)// is det[private]
eq_pi(PI1, PI2) is semidet[private]
is_pi(@Term) is semidet
re_exported_doc(+Undoc:list(pi), +File:atom, +Module:atom, -ImportedDoc, -ReallyUnDoc:list(pi))[private]
object_page(+Obj, +Options)// is semidet
object_footer(+Obj, +Options)// is det
object_changelog(+Obj, +Options)// is det[private]f(...)) was introduced
and when it was last changed. Empty when no events are known or
when the changelog support was not built (CHANGELOG cmake option
off). Each version is rendered as Maj.Min.Patch and linked to
the underlying commit on GitHub.
objs_pis(+Objs, -PIs) is det[private]// events separately). Other object
shapes (xpce(...), c(...), f(...), library(...), section(...)) are
dropped so the footer is suppressed for them.
all_introduced(+PIs, -Event) is semidet[private]
union_last_changed(+PIs, -Events:list) is det[private]
object_page_footer(+Obj, +Options)// is det
object_synopsis(Obj, Options)// is det
unquote_filespec(+Spec, -Unquoted) is det
doc_write_html(+Out:stream, +Title:atomic, +DOM) is det
doc_page_dom(+Title, +Body, -DOM) is det
print_html_head(+Out:stream) is detDOCTYPE line.
tags(+Tags)// is det
tag(+Tag, +Values:list)// is dettag(Name, Values) terms produced by doc_wiki.pl.
doc_tag_title(+Tag, -Title) is detargs(List) created by doc_wiki.pl. Params is a
list of arg(Name, Descr).
objects_nav_tree(+Objects, -Tree) is det[private]node(Object, Children).
remove_unique_root(+TreeIn, -Tree)[private]
nav_tree(+Tree, +Current, +Options)// is det[private]
object_tree(+Tree, +Current, +Options)// is det
pred_dt(+Modes, +Class, Options)// is det
anon_vars(+Term) is det[private]
pred_edit_button(+PredIndicator, +Options)// is det
object_edit_button(+Object, +Options)// is det
pred_source_button(+PredIndicator, +Options)// is det[private]
object_source_button(+Object, +Options)// is det
canonicalise_predref(+PredRef, -PI:Name/Arity, +Options0, -Options) is det[private]module(M) to Options.span using
class pred and the arguments and var using class arglist.
is_op_type(+Atom, ?Type)prefix,
infix or postfix.
term(+Text, +Term, +Bindings)// is det
predref(+PI)// is det
predref(+PI, +Options)// is det
Current file must be available through the global variable
pldoc_file. If this variable not set it creates a link to
/doc/<file>#anchor. Such links only work in the online browser.
nopredref(+PI)//name/arity, non-linking predicate indicator.
flagref(+Flag)//
cite(+Citations)// is det
manref(+NameArity, -HREF, +Options) is det[private]man_server(+Server).
pred_href(+NameArity, +Module, -HREF) is semidet[private]
pred_source_href(+Pred:predicate_indicator, +Module, -HREF) is semidet[private]
object_ref(+Object, +Options)// is det
object_href(+Object, -HREF) is det
object_href(+Object, -HREF, +Options) is det
localise_object(+ObjIn, -ObjOut) is det[private]
term_to_string(+Term, -String) is det[private]
object_name(+Obj, +Options)// is detinline or titlenumber, title or number_title
in_file(+Head, ?File) is nondet[private]
file(+FileName)// is det
file(+FileName, +Options)// is detfile(File) terms in the DOM term generated by wiki.pl. Supported
options are:
file(Name, Link) that specifies that we must
user Link for the given physical file Name.
file_href(+FilePath, -HREF, +Options) is det[private]
map_extension(+HREFIn, -HREFOut, Options) is det[private]map_extension(+Pairs)
file_href(+FilePath, -HREF) is det[private]pldoc_file.
existing_linked_file(+File, -Path) is semidet
include(+FileName, +Type, +Options)// is detinclude(File,
Type) terms in the DOM term generated by wiki.pl if it
encounters [[file.ext]].
html_tokens_for_predicates(+PI, +Options)// is semidet[private]
* [[member/2]]
* [[append/3]]
doc_for_wiki_file(+File, +Options) is det
mode_anchor_name(+Mode, -Anchor:atom) is det
pred_anchor_name(+Head, -PI:atom/integer, -Anchor:atom) is detThe following predicates are exported, but not or incorrectly documented.
object_page_header(Arg1, Arg2, Arg3, Arg4)