|
1 | 1 | require 'rdoc' |
2 | 2 |
|
| 3 | +# This page is about RDoc's +rdoc+ input format, |
| 4 | +# which here we'll call "RDoc markup" or simply "markup." |
| 5 | +# |
| 6 | +# == About This \Class |
| 7 | +# |
3 | 8 | # \Class \RDoc::MarkupReference exists only to provide a suitable home |
4 | 9 | # for a reference document for \RDoc markup. |
5 | 10 | # |
|
21 | 26 | # >>> |
22 | 27 | # Some stuff |
23 | 28 | # |
24 | | -# == \RDoc Sources |
| 29 | +# == Markup Sources |
25 | 30 | # |
26 | | -# The sources of \RDoc documentation vary according to the type of file: |
| 31 | +# The sources of markup documentation vary according to the type of file: |
27 | 32 | # |
28 | 33 | # - <tt>.rb</tt> (Ruby code file): |
29 | 34 | # |
30 | 35 | # - Markup may be found in Ruby comments: |
31 | 36 | # A comment that immediately precedes the definition |
32 | 37 | # of a Ruby class, module, method, alias, constant, or attribute |
33 | 38 | # becomes the documentation for that defined object. |
34 | | -# - An \RDoc directive may be found in: |
| 39 | +# - A markup directive may be found in: |
35 | 40 | # |
36 | 41 | # - A trailing comment (on the same line as code); |
37 | 42 | # see <tt>:nodoc:</tt>, <tt>:doc:</tt>, and <tt>:notnew:</tt>. |
38 | 43 | # - A single-line comment; |
39 | 44 | # see other {Directives}[rdoc-ref:RDoc::MarkupReference@Directives]. |
40 | 45 | # |
41 | 46 | # - Documentation may be derived from the Ruby code itself; |
42 | | -# see {Documentation Derived from Ruby Code}[rdoc-ref:RDoc::MarkupReference@Documentation+Derived+from+Ruby+Code]. |
| 47 | +# see {Derived Documentation}[rdoc-ref:RDoc::MarkupReference@Derived+Documentation]. |
43 | 48 | # |
44 | 49 | # - <tt>.c</tt> (C code file): markup is parsed from C comments. |
45 | 50 | # A comment that immediately precedes |
46 | 51 | # a function that implements a Ruby method, |
47 | 52 | # or otherwise immediately precedes the definition of a Ruby object, |
48 | 53 | # becomes the documentation for that object. |
49 | | -# - <tt>.rdoc</tt> (\RDoc markup text file) or <tt>.md</tt> (\RDoc markdown text file): |
| 54 | +# - <tt>.rdoc</tt> (markup file): |
50 | 55 | # markup is parsed from the entire file. |
51 | 56 | # The text is not associated with any code object, |
52 | 57 | # but may (depending on how the documentation is built) |
53 | 58 | # become a separate page. |
54 | 59 | # |
55 | | -# An <i>RDoc document</i>: |
| 60 | +# Note that all of the above applies to \RDoc <tt>markup</tt>-formatted documentation: |
| 61 | +# |
| 62 | +# - A C- or \Ruby-coded file may contain <tt>markdown</tt>-formatted documentation, |
| 63 | +# though that format must be declared (because the default is +markup+). |
| 64 | +# - A markdown (<tt>.md</tt>) file contains only <tt>markdown</tt>-formatted documentation. |
| 65 | +# |
| 66 | +# == Markup Document |
| 67 | +# |
| 68 | +# The term <i>markup document</i> refers to one of: |
56 | 69 | # |
57 | 70 | # - A (possibly multi-line) comment in a Ruby or C file |
58 | | -# that generates \RDoc documentation (as above). |
59 | | -# - The entire markup (<tt>.rdoc</tt>) file or markdown (<tt>.md</tt>) file |
60 | | -# (which is usually multi-line). |
| 71 | +# that generates documentation (as above). |
| 72 | +# - An entire markup file (i.e., a file with extension <tt>.rdoc</tt>). |
61 | 73 | # |
62 | 74 | # == Blocks |
63 | 75 | # |
|
1141 | 1153 | # - A double escape character \\ that is rendered |
1142 | 1154 | # as a single backslash. |
1143 | 1155 | # |
1144 | | -# == Documentation Derived from Ruby Code |
| 1156 | +# == Derived Documentation |
1145 | 1157 | # |
1146 | 1158 | # [Class] |
1147 | 1159 | # |
1148 | 1160 | # By default, \RDoc documents: |
1149 | 1161 | # |
1150 | 1162 | # - \Class name. |
1151 | 1163 | # - Parent class. |
| 1164 | +# - Included modules. |
1152 | 1165 | # - Singleton methods. |
1153 | 1166 | # - Instance methods. |
1154 | 1167 | # - Aliases. |
|
1160 | 1173 | # By default, \RDoc documents: |
1161 | 1174 | # |
1162 | 1175 | # - \Module name. |
| 1176 | +# - Included modules. |
1163 | 1177 | # - \Singleton methods. |
1164 | 1178 | # - Instance methods. |
1165 | 1179 | # - Aliases. |
|
0 commit comments