diff options
author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2023-09-24 16:57:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-24 17:57:21 -0400 |
commit | 36cd2b2a52dec47f9cf166a730026ada21fbd828 (patch) | |
tree | 44972971c505b4b1a5e3def1190692f235fab979 | |
parent | f43dac0df29c137ae966362f7faf26084468a0fb (diff) | |
download | ruby-36cd2b2a52dec47f9cf166a730026ada21fbd828.tar.gz |
[DOC] Correction for doc guide + TOC fix in File (#8505)
-rw-r--r-- | doc/contributing/documentation_guide.md | 21 | ||||
-rw-r--r-- | file.c | 2 |
2 files changed, 14 insertions, 9 deletions
diff --git a/doc/contributing/documentation_guide.md b/doc/contributing/documentation_guide.md index 6cb2b8d7dc..25a5fa1673 100644 --- a/doc/contributing/documentation_guide.md +++ b/doc/contributing/documentation_guide.md @@ -216,16 +216,21 @@ may not render them properly. In particular, avoid building tables with HTML tags (<tt><table></tt>, etc.). -Alternatives are: - -- The GFM (GitHub Flavored Markdown) table extension, - which is enabled by default. See - {GFM tables extension}[https://github.github.com/gfm/#tables-extension-]. +Alternatives: - A {verbatim text block}[rdoc-ref:RDoc::MarkupReference@Verbatim+Text+Blocks], - using spaces and punctuation to format the text. - Note that {text markup}[rdoc-ref:RDoc::MarkupReference@Text+Markup] - will not be honored. + using spaces and punctuation to format the text; + note that {text markup}[rdoc-ref:RDoc::MarkupReference@Text+Markup] + will not be honored: + + - Example {source}[https://github.com/ruby/ruby/blob/34d802f32f00df1ac0220b62f72605827c16bad8/file.c#L6570-L6596]. + - Corresponding {output}[rdoc-ref:File@Read-2FWrite+Mode]. + +- (Markdown format only): A {Github Flavored Markdown (GFM) table}[https://github.github.com/gfm/#tables-extension-], + using special formatting for the text: + + - Example {source}[https://github.com/ruby/ruby/blob/34d802f32f00df1ac0220b62f72605827c16bad8/doc/contributing/glossary.md?plain=1]. + - Corresponding {output}[https://docs.ruby-lang.org/en/master/contributing/glossary_md.html]. ## Documenting Classes and Modules @@ -6531,7 +6531,7 @@ const char ruby_null_device[] = * \Class \File extends module FileTest, supporting such singleton methods * as <tt>File.exist?</tt>. * - * === About the Examples + * == About the Examples * * Many examples here use these variables: * |