
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:
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)
private(+Obj, +Options) is semidet
multifile(+Obj, +Options) is semidet
file_header(+File, +Options)// is det
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.
is_pi(@Term) is semidet
object_page(+Obj, +Options)// is semidet
object_footer(+Obj, +Options)// is det
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 det
object_tree(+Tree, +Current, +Options)// is det
pred_dt(+Modes, +Class, Options)// is det
pred_edit_button(+PredIndicator, +Options)// is det
object_edit_button(+Object, +Options)// is det
object_source_button(+Object, +Options)// is det
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
object_ref(+Object, +Options)// is det
object_href(+Object, -HREF) is det
object_href(+Object, -HREF, +Options) is det
object_name(+Obj, +Options)// is detinline or titlenumber, title or number_title
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.
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]].
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)