2006-06-17 01:03:56 -04:00
IN: help
USING: io ;
2006-08-16 21:55:53 -04:00
HELP: articles
{ $var-description "Hashtable mapping article names to " { $link article } " instances." } ;
2006-06-17 01:03:56 -04:00
2006-08-16 21:55:53 -04:00
HELP: no-article
2006-08-01 17:35:00 -04:00
{ $values { "name" "an article name" } }
{ $description "Throws a " { $link no-article } " error." }
{ $error-description "Thrown by " { $link help } " if the given help topic does not exist, or if the help topic being dispayed links to a help topic which does not exist." } ;
2006-08-16 21:55:53 -04:00
HELP: article
2006-06-17 01:03:56 -04:00
{ $values { "name" "an article name" } { "article" "an " { $link article } " object" } }
{ $description "Outputs a named " { $link article } " object." } ;
2006-08-16 21:55:53 -04:00
HELP: article-title ( topic -- string )
2006-06-17 01:03:56 -04:00
{ $values { "topic" "an article name or a word" } { "string" "a string" } }
{ $description "Outputs the title of a specific help article." } ;
2006-08-16 21:55:53 -04:00
HELP: article-content ( topic -- element )
2006-06-17 01:03:56 -04:00
{ $values { "topic" "an article name or a word" } { "element" "a markup element" } }
{ $description "Outputs the content of a specific help article." } ;
2006-08-16 21:55:53 -04:00
HELP: all-articles
2006-06-22 01:57:43 -04:00
{ $values { "seq" "a sequence" } }
{ $description "Outputs a sequence of all help article names, and all words with documentation." } ;
2006-08-16 21:55:53 -04:00
HELP: elements
2006-06-22 01:57:43 -04:00
{ $values { "elt-type" "a word" } { "element" "a markup element" } { "seq" "a new sequence" } }
{ $description "Outputs a sequence of all elements of type " { $snippet "elt-type" } " found by traversing " { $snippet "element" } "." } ;
2006-08-16 21:55:53 -04:00
HELP: collect-elements
2006-06-22 01:57:43 -04:00
{ $values { "element" "a markup element" } { "seq" "a sequence of words" } { "elements" "a new sequence" } }
{ $description "Collects the arguments of all sub-elements of " { $snippet "element" } " whose markup element type occurs in " { $snippet "seq" } "." }
{ $notes "Used to implement " { $link children } "." } ;
2006-08-16 21:55:53 -04:00
HELP: parent-graph
{ $var-description "A graph whose vertices are help articles and edges are subsections. See " { $link "graphs" } "." }
2006-06-22 22:36:56 -04:00
{ $see-also children parents xref-help } ;
2006-06-22 01:57:43 -04:00
2006-08-16 21:55:53 -04:00
HELP: children
2006-06-22 01:57:43 -04:00
{ $values { "topic" "an article name or a word" } { "seq" "a new sequence" } }
{ $description "Outputs a sequence of all subsections of " { $snippet "topic" } "." } ;
2006-08-16 21:55:53 -04:00
HELP: parents
2006-06-22 01:57:43 -04:00
{ $values { "topic" "an article name or a word" } { "seq" "a new sequence" } }
{ $description "Outputs a sequence of all help articles which contain " { $snippet "topic" } " as a subsection." } ;
2006-08-16 21:55:53 -04:00
HELP: doc-path
2006-06-22 01:57:43 -04:00
{ $values { "topic" "an article name or a word" } { "seq" "a new sequence" } }
{ $description "Outputs a sequence of all help articles which contain " { $snippet "topic" } " as a subsection, traversing all the way up to the root." }
{ $examples
2006-08-02 16:53:26 -04:00
{ $example "\"sequences\" doc-path ." "{ \"collections\" \"handbook\" }" }
2006-06-22 01:57:43 -04:00
} ;
2006-08-16 21:55:53 -04:00
HELP: xref-article
2006-06-22 01:57:43 -04:00
{ $values { "topic" "an article name or a word" } }
{ $description "Adds an article to the " { $link parent-graph } " graph." }
$low-level-note ;
2006-08-16 21:55:53 -04:00
HELP: unxref-article
2006-06-22 01:57:43 -04:00
{ $values { "topic" "an article name or a word" } }
{ $description "Removes an article to the " { $link parent-graph } " graph." }
$low-level-note ;
2006-08-16 21:55:53 -04:00
HELP: xref-help
2006-06-22 01:57:43 -04:00
{ $description "Update the " { $link parent-graph } ". Usually this is done automatically." } ;
2006-08-19 15:33:55 -04:00
HELP: link
{ $class-description "Class of help article presentations. Instances can be passed to " { $link write-object } " to output a clickable hyperlink. Also, instances of this class are valid definition specifiers; see " { $link "definitions" } "." } ;