You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. README now has a better section about supported markup formats
2. RDoc markup related reference are now consolidated under `doc/markup_reference/rdoc.rdoc`
3. Markdown markup now has a more comprehensive reference in `doc/markup_reference/markdown.md`
Copy file name to clipboardExpand all lines: README.md
+70-4Lines changed: 70 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ You can specify the target files for document generation with `.document` file i
60
60
61
61
## Writing Documentation
62
62
63
-
To write documentation for RDoc place a comment above the class, module, method, constant, or attribute you want documented:
63
+
To write documentation for RDoc, place a comment above the class, module, method, constant, or attribute you want documented:
64
64
65
65
```rb
66
66
##
@@ -80,13 +80,79 @@ class Shape
80
80
end
81
81
```
82
82
83
-
The default comment markup format is the RDoc::Markup format. TomDoc, Markdown and RD format comments are also supported. You can set the default comment format for your entire project by creating a `.rdoc_options` file. See RDoc::Options@Saved+Options for instructions on creating one. You can also set the comment format for a single file through the `:markup:` directive, but this is only recommended if you wish to switch markup formats. See RDoc::Markup@Other+directives.
83
+
### Markup Formats
84
84
85
-
Comments can contain directives that tell RDoc information that it cannot otherwise discover through parsing. See RDoc::Markup@Directives to control what is or is not documented, to define method arguments or to break up methods in a class by topic. See RDoc::Parser::Ruby for directives used to teach RDoc about metaprogrammed methods.
Comments can contain directives that tell RDoc information that it cannot otherwise discover through parsing. See RDoc::Markup@Directives to control what is or is not documented, to define method arguments or to break up methods in a class by topic. See RDoc::Parser::Ruby for directives used to teach RDoc about metaprogrammed methods.
86
150
87
151
See RDoc::Parser::C for documenting C extensions with RDoc.
88
152
89
-
To determine how well your project is documented run `rdoc -C lib` to get a documentation coverage report. `rdoc -C1 lib` includes parameter names in the documentation coverage report.
153
+
### Documentation Coverage
154
+
155
+
To determine how well your project is documented run `rdoc -C lib` to get a documentation coverage report. `rdoc -C1 lib` includes parameter names in the documentation coverage report.
0 commit comments