PlDoc --- SWI-Prolog source documentation

The pldoc module processes structured comments in Prolog source files. These comments can be saved to file. During development the documentation system can start a web-server to view the documentation of loaded sources through your browser. The server is defined in the file doc_http.pl and started through doc_server/1.

During development, a typical scenario is to first start the documentation server and start a browser at http://localhost:4000. Note that by default the web-pages allow for starting an editor only if the connection comes from localhost. See doc_server/2 to realise a different setup.

:- doc_server(4000).
:- [application].
author
- Jan Wielemaker
See also
- doc_server/1, doc_server/2, doc_collect/1.
license
- LGPL

Prolog files

doc_access.plShow source
host_access_options/2Filter the authorization options from AllOptions, leaving the remaining options in NoAuthOptions.Source
doc_colour.pl  -- Source colouring supportShow source
colour_fragments/2Create a list of colour fragments from In.Source
doc_html.pl  -- PlDoc HTML backendShow source
doc_htmlsrc.pl  -- HTML source pretty-printerShow source
source_to_html/3Colourise Prolog source as HTML.Source
doc_index.pl  -- Create indexesShow source
dir_index/4Create an index for all Prolog files appearing in Dir or in any directory contained in Dir.Source
doc_file_href/2Create a /doc HREF from Path.Source
doc_for_dir/2Write summary index for all files in Dir to Out.Source
doc_links/4Provide overview links and search facilities.Source
file_index_header/4Create an entry in a summary-table for File.Source
object_summaries/5Create entries in a summary table for Objects.Source
places_menu/3Create a select menu with entries for all loaded directories.Source
source_directory/1True if Dir is a directory from which we have loaded Prolog sources.Source
doc_man.pl  -- Process SWI-Prolog HTML manualsShow source
doc_modes.pl  -- Analyse PlDoc mode declarationsShow source
compile_clause/2Add a clause to the compiled program.Source
compile_mode/2Compile a PlDoc mode declararion into a term mode(Head, Determinism).Source
is_mode/1True if Head is a valid mode-term.Source
mode/2True if there is a mode-declaration for Head with Det.Source
mode_indicator/1Our defined argument-mode indicators.Source
modes_to_predicate_indicators/2Create a list of predicate indicators represented by Modes.Source
process_modes/6Process the formal header lines (upto the first blank line), returning the remaining lines and the names of the arguments used in the various header lines.Source
doc_pack.pl  -- PlDoc for Prolog extension packsShow source
doc_pack/1Generate stand-alone documentation for the package Pack.Source
doc_process.pl  -- Process source documentationShow source
doc_comment/4True if Comment is the comment describing object.Source
doc_file_has_comments/1True if we have loaded comments from Source.Source
doc_file_name/3Doc is the name of the file for documenting Source.Source
is_structured_comment/2True if Comment is a structured comment that should use Prefixes to extract the plain text using indented_lines/3.Source
parse_comment/3True when Comment is a structured comment and Parsed is its parsed representation.Source
process_comments/3Processes comments returned by read_term/3 using the comments option.Source
predicate_summary/2Provide predicate summaries to the XPCE class prolog_predicate, used by the IDE tools.Source
doc_register.plShow source
doc_search.pl  -- Search form and replyShow source
matching_object_table/4Show a list of matching objects, similar to a result-set from search.Source
search_form/3Create a search input field.Source
search_reply/4Generate a reply searching for For.Source
doc_util.pl  -- PlDoc utilitiesShow source
doc_wiki.pl  -- PlDoc wiki parserShow source