factor/library/help/help.facts

57 lines
2.4 KiB
Plaintext
Raw Normal View History

2006-06-16 23:12:40 -04:00
IN: help
2006-08-02 15:17:13 -04:00
USING: definitions io prettyprint ;
2006-06-16 23:12:40 -04:00
2006-06-20 23:05:26 -04:00
HELP: $title "( topic -- )"
2006-06-17 01:03:56 -04:00
{ $values { "topic" "a help article name or a word" } }
{ $description "Prints a help article's title, or a word's " { $link synopsis } ", depending on the type of " { $snippet "topic" } "." } ;
2006-06-16 23:12:40 -04:00
HELP: print-content "( element -- )"
{ $values { "element" "a markup element" } }
{ $description "Prints a top-level markup element to the " { $link stdio } " stream." } ;
HELP: (help) "( topic -- )"
{ $values { "topic" "an article name or a word" } }
{ $description
"Displays a help article or documentation associated to a word on the " { $link stdio } " stream. This word does not print the article title, so it is intended for use by outliners and in other contexts where the title is already visible to the user."
}
2006-06-17 01:03:56 -04:00
{ $see-also help see-help } ;
2006-06-16 23:12:40 -04:00
HELP: help "( topic -- )"
{ $values { "topic" "an article name or a word" } }
{ $description
"Displays a help article or documentation associated to a word on the " { $link stdio } " stream."
}
2006-06-17 01:03:56 -04:00
{ $see-also (help) see-help } ;
HELP: see-help "( word -- )"
{ $values { "word" "a word" } }
{ $description
"Display the documentation and definition of a word on the " { $link stdio } " stream."
}
{ $see-also (help) help see } ;
2006-06-16 23:12:40 -04:00
HELP: handbook "( -- )"
{ $description "Displays the Factor developer's handbook." }
{ $see-also help } ;
2006-06-17 01:03:56 -04:00
HELP: $subsection "( element -- )"
{ $values { "element" "a markup element of the form " { $snippet "{ topic }" } } }
{ $description "Prints an expandable outliner containing the body of the help topic named by the first string element of " { $snippet "element" } "." }
{ $examples
{ $markup-example { $subsection "sequences" } }
} ;
HELP: $subtopic "( element -- )"
{ $values { "element" "a markup element of the form " { $snippet "{ title content }" } } }
{ $description "Prints an expandable outliner with the given title containing an arbitrary markup element." }
{ $examples
{ $markup-example { $subtopic "Subtopic example"
"Subtopics are useful for short notes, sidebars "
"and other bits of info which don't really deserve "
"their own help article." } }
} ;
HELP: $outliner "( element -- )"
{ $values { "element" "a markup element of the form " { $snippet "( quot -- )" } } }
{ $description "Calls the quotation to generate a sequence of help topics, and outputs an outliner for each one. Expanding a help topic shows the article body." } ;