-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] Add some links in intro; delimit rendered HTML output. #904
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -9,16 +9,29 @@ | |||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# = \RDoc Markup Reference | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# [Note] | ||||||||||||||||||||||||||||||||||||
# Notes: | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# - Examples in this reference are Ruby code and comments; | ||||||||||||||||||||||||||||||||||||
# certain differences from other sources | ||||||||||||||||||||||||||||||||||||
# (such as C code and comments) are noted. | ||||||||||||||||||||||||||||||||||||
# - An example that shows rendered HTML output | ||||||||||||||||||||||||||||||||||||
# delimits that output with beginning and ending markers: | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# >>> Rendered HTML >>> | ||||||||||||||||||||||||||||||||||||
# ... | ||||||||||||||||||||||||||||||||||||
# <<<<<< | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Examples in this reference are Ruby code and comments. | ||||||||||||||||||||||||||||||||||||
# Certain differences among the sources are noted. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# \RDoc-generated documentation is derived from and controlled by: | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# - Single-line or multi-line comments that precede certain definitions. | ||||||||||||||||||||||||||||||||||||
# - \RDoc directives in trailing comments (on the same line as code). | ||||||||||||||||||||||||||||||||||||
# - Single-line or multi-line comments that precede certain definitions; | ||||||||||||||||||||||||||||||||||||
# see {Markup in Comments}[rdoc-ref:RDoc::MarkupReference@Markup+in+Comments]. | ||||||||||||||||||||||||||||||||||||
# - \RDoc directives in trailing comments (on the same line as code); | ||||||||||||||||||||||||||||||||||||
# see <tt>:nodoc:</tt>, <tt>:doc:</tt>, and <tt>:notnew</tt>. | ||||||||||||||||||||||||||||||||||||
# - \RDoc directives in single-line comments; | ||||||||||||||||||||||||||||||||||||
# see other {Directives}[rdoc-ref:RDoc::MarkupReference@Directives]. | ||||||||||||||||||||||||||||||||||||
# - The Ruby code itself. | ||||||||||||||||||||||||||||||||||||
# see {Documentation Derived from Ruby Code}[rdoc-ref:RDoc::MarkupReference@Documentation+Derived+from+Ruby+Code] | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# == Markup in Comments | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
|
@@ -75,14 +88,16 @@ | |||||||||||||||||||||||||||||||||||
# # | ||||||||||||||||||||||||||||||||||||
# # You'll love it. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Rendered HTML: | ||||||||||||||||||||||||||||||||||||
# >>> Rendered HTML >>> | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# \RDoc produces HTML and command-line documentation for Ruby projects. | ||||||||||||||||||||||||||||||||||||
# \RDoc includes the rdoc and ri tools for generating and displaying | ||||||||||||||||||||||||||||||||||||
# documentation from the command-line. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# You'll love it. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# <<<<<< | ||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't BLOCKQUOTE better?
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, @nobu. I was hoping for suggested better delimitation. I'm not sure that all markup will be honored inside a blockquote, but I'll look into it. Another idea I had was to put There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see that list items, HR, and verbatim text (including code blocks) survive in a blockquote. Don't know what else does, or not. I'll go ahead and switch over. |
||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# A paragraph may contain nested blocks, including: | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# - Verbatim text blocks. | ||||||||||||||||||||||||||||||||||||
|
@@ -112,7 +127,7 @@ | |||||||||||||||||||||||||||||||||||
# # | ||||||||||||||||||||||||||||||||||||
# # This is not verbatim text. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Rendered HTML: | ||||||||||||||||||||||||||||||||||||
# >>> Rendered HTML >>> | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# This is not verbatim text. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
|
@@ -123,6 +138,9 @@ | |||||||||||||||||||||||||||||||||||
# This is still the same verbatim text block. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# This is not verbatim text. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# <<<<<< | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# ==== Code Blocks | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# A special case of verbatim text is the <em>code block</em>, | ||||||||||||||||||||||||||||||||||||
|
@@ -134,13 +152,27 @@ | |||||||||||||||||||||||||||||||||||
# - Has a contrasting background color. | ||||||||||||||||||||||||||||||||||||
# - Has syntax highlighting. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Example: | ||||||||||||||||||||||||||||||||||||
# Example input: | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Consider this method: | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# def foo(name = '', value = 0) | ||||||||||||||||||||||||||||||||||||
# @name = name # Whitespace is still honored. | ||||||||||||||||||||||||||||||||||||
# @value = value | ||||||||||||||||||||||||||||||||||||
# end | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# >>> Rendered HTML >>> | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Consider this method: | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# def foo(name = '', value = 0) | ||||||||||||||||||||||||||||||||||||
# @name = name # Whitespace is still honored. | ||||||||||||||||||||||||||||||||||||
# @value = value | ||||||||||||||||||||||||||||||||||||
# end | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# <<<<<< | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Pro tip: If your indented Ruby code does not get highlighted, | ||||||||||||||||||||||||||||||||||||
# it may contain a syntax error. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
|
@@ -179,7 +211,7 @@ | |||||||||||||||||||||||||||||||||||
# # * Yet another. | ||||||||||||||||||||||||||||||||||||
# # - Last one. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Rendered HTML: | ||||||||||||||||||||||||||||||||||||
# >>> Rendered HTML >>> | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# - An item. | ||||||||||||||||||||||||||||||||||||
# - Another. | ||||||||||||||||||||||||||||||||||||
|
@@ -189,6 +221,8 @@ | |||||||||||||||||||||||||||||||||||
# * Yet another. | ||||||||||||||||||||||||||||||||||||
# - Last one. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# <<<<<< | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# ===== Numbered Lists | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# A numbered list item begins with digits and a period. | ||||||||||||||||||||||||||||||||||||
|
@@ -205,7 +239,7 @@ | |||||||||||||||||||||||||||||||||||
# # 1. Yet another. | ||||||||||||||||||||||||||||||||||||
# # 1000. Last one. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Rendered HTML: | ||||||||||||||||||||||||||||||||||||
# >>> Rendered HTML >>> | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# 100. An item. | ||||||||||||||||||||||||||||||||||||
# 10. Another. | ||||||||||||||||||||||||||||||||||||
|
@@ -215,6 +249,8 @@ | |||||||||||||||||||||||||||||||||||
# 1. Yet another. | ||||||||||||||||||||||||||||||||||||
# 1000. Last one. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# <<<<<< | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# ===== Lettered Lists | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# A numbered list item begins with a letters and a period. | ||||||||||||||||||||||||||||||||||||
|
@@ -231,14 +267,16 @@ | |||||||||||||||||||||||||||||||||||
# # x. Yet another. | ||||||||||||||||||||||||||||||||||||
# # a. Last one. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Rendered HTML: | ||||||||||||||||||||||||||||||||||||
# >>> Rendered HTML >>> | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# z. An item. | ||||||||||||||||||||||||||||||||||||
# y. Another. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# x. Yet another. | ||||||||||||||||||||||||||||||||||||
# a. Last one. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# <<<<<< | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# ===== Labeled Lists | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# A labeled list item begins with one of: | ||||||||||||||||||||||||||||||||||||
|
@@ -256,7 +294,7 @@ | |||||||||||||||||||||||||||||||||||
# # [bar baz] Yet another. | ||||||||||||||||||||||||||||||||||||
# # bam:: Last one. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Rendered HTML: | ||||||||||||||||||||||||||||||||||||
# >>> Rendered HTML >>> | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# [foo] An item. | ||||||||||||||||||||||||||||||||||||
# bat:: Another. | ||||||||||||||||||||||||||||||||||||
|
@@ -266,6 +304,8 @@ | |||||||||||||||||||||||||||||||||||
# [bar baz] Yet another. | ||||||||||||||||||||||||||||||||||||
# bam:: Last one. | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# <<<<<< | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# ===== Blocks Nested in Lists | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# A list item may contain nested blocks, including: | ||||||||||||||||||||||||||||||||||||
|
@@ -312,7 +352,7 @@ | |||||||||||||||||||||||||||||||||||
# # | ||||||||||||||||||||||||||||||||||||
# # --- | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# Rendered HTML: | ||||||||||||||||||||||||||||||||||||
# >>> Rendered HTML >>> | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# ------ | ||||||||||||||||||||||||||||||||||||
# Stuff between. | ||||||||||||||||||||||||||||||||||||
|
@@ -323,6 +363,8 @@ | |||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# --- | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# <<<<<< | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# ==== Directives | ||||||||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||||||||
# ===== Directives for Allowing or Suppressing Documentation | ||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.