]> gitweb.factorcode.org Git - factor.git/blob - basis/tools/scaffold/scaffold-docs.factor
Solution to Project Euler problem 65
[factor.git] / basis / tools / scaffold / scaffold-docs.factor
1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax kernel strings words vocabs ;
4 IN: tools.scaffold
5
6 HELP: developer-name
7 { $description "Set this symbol to hold your name so that the scaffold tools can generate the correct file header for copyright. Setting this variable in your .factor-boot-rc file is recommended." }
8 { $code "USING: namespaces tools.scaffold ;\n\"Stacky Guy\" developer-name set-global" } ;
9
10 HELP: help.
11 { $values
12      { "word" word } }
13 { $description "Prints out scaffold help markup for a given word." } ;
14
15 HELP: scaffold-help
16 { $values { "vocab" vocab } }
17 { $description "Takes an existing vocabulary and creates a help file with scaffolded help for each word. This word only works if no help file yet exists." } ;
18
19 HELP: scaffold-undocumented
20 { $values
21      { "string" string } }
22 { $description "Prints scaffolding documenation for undocumented words in a vocabuary except for automatically generated class predicates." } ;
23
24 { scaffold-help scaffold-undocumented } related-words
25
26 HELP: scaffold-vocab
27 { $values
28      { "vocab-root" "a vocabulary root string" } { "string" string } }
29 { $description "Creates a directory in the given root for a new vocabulary and adds a main .factor file and an authors.txt file." } ;
30
31 HELP: scaffold-emacs
32 { $description "Touches the .emacs file in your home directory and provides a clickable link to open it in an editor." } ;
33
34 HELP: scaffold-factor-boot-rc
35 { $description "Touches the .factor-boot-rc file in your home directory and provides a clickable link to open it in an editor." } ;
36
37 HELP: scaffold-factor-rc
38 { $description "Touches the .factor-rc file in your home directory and provides a clickable link to open it in an editor." } ;
39
40 HELP: scaffold-rc
41 { $values
42      { "path" "a pathname string" }
43 }
44 { $description "Touches the given path in your home directory and provides a clickable link to open it in an editor." } ;
45
46 HELP: using
47 { $description "Stores the vocabularies that are pulled into the documentation file from looking up the stack effect types." } ;
48
49 ARTICLE: "tools.scaffold" "Scaffold tool"
50 "Scaffold setup:"
51 { $subsection developer-name }
52 "Generate new vocabs:"
53 { $subsection scaffold-vocab }
54 "Generate help scaffolding:"
55 { $subsection scaffold-help }
56 { $subsection scaffold-undocumented }
57 { $subsection help. }
58 "Types that are unrecognized by the scaffold generator will be of type " { $link null } ". The developer should change these to strings that describe the stack effect names instead." $nl
59 "Scaffolding a configuration file:"
60 { $subsection scaffold-rc }
61 { $subsection scaffold-factor-boot-rc }
62 { $subsection scaffold-factor-rc }
63 { $subsection scaffold-emacs }
64 ;
65
66 ABOUT: "tools.scaffold"