factor/library/help/help.factor

22 lines
428 B
Factor
Raw Normal View History

2005-12-01 00:53:12 -05:00
IN: help
USING: arrays hashtables io kernel namespaces ;
SYMBOL: last-block
2005-12-01 00:53:12 -05:00
2005-12-28 20:25:17 -05:00
: (help) ( topic -- )
default-style [
last-block on article-content print-element
] with-nesting* terpri ;
2005-12-01 00:53:12 -05:00
2005-12-28 20:25:17 -05:00
DEFER: $heading
2005-12-01 00:53:12 -05:00
2005-12-28 20:25:17 -05:00
: help ( topic -- )
default-style [ dup article-title $heading ] with-style
(help) ;
2005-12-28 20:25:17 -05:00
: glossary ( name -- ) <term> help ;
2006-01-19 03:28:10 -05:00
: handbook ( -- ) "handbook" help ;
: tutorial ( -- ) "tutorial" help ;