[ruby/rdoc] [DOC] Mods about markup formats

(https://github.com/ruby/rdoc/pull/1143)

https://github.com/ruby/rdoc/commit/011de3f2fd
This commit is contained in:
Burdette Lamar 2024-07-29 08:16:13 -05:00 committed by git
parent df1cc04301
commit 63bdf2d725
5 changed files with 24 additions and 25 deletions

View File

@ -532,7 +532,8 @@ require 'rdoc'
# #
# - Appears on a line by itself. # - Appears on a line by itself.
# - Specifies the format for the \RDoc input; # - Specifies the format for the \RDoc input;
# parameter +type+ is one of +markdown+, +rd+, +rdoc+, +tomdoc+. # parameter +type+ is one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+.
# See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats].
# #
# ===== Directives for HTML Output # ===== Directives for HTML Output
# #

View File

@ -10,19 +10,24 @@
# RDoc::Markup and other markup formats do no output formatting, this is # RDoc::Markup and other markup formats do no output formatting, this is
# handled by the RDoc::Markup::Formatter subclasses. # handled by the RDoc::Markup::Formatter subclasses.
# #
# = Supported Formats # = Markup Formats
# #
# Besides the RDoc::Markup format, the following formats are built in to RDoc: # +RDoc+ supports these markup formats:
# #
# markdown:: # - +rdoc+:
# The markdown format as described by # the +RDoc+ markup format;
# http://daringfireball.net/projects/markdown/. See RDoc::Markdown for # see RDoc::MarkupReference.
# details on the parser and supported extensions. # - +markdown+:
# rd:: # The +markdown+ markup format as described in
# The rdtool format. See RDoc::RD for details on the parser and format. # the {Markdown Guide}[https://www.markdownguide.org];
# tomdoc:: # see RDoc::Markdown.
# The TomDoc format as described by http://tomdoc.org/. See RDoc::TomDoc # - +rd+:
# for details on the parser and supported extensions. # the +rd+ markup format format;
# see RDoc::RD.
# - +tomdoc+:
# the TomDoc format as described in
# {TomDoc for Ruby}[http://tomdoc.org];
# see RDoc::TomDoc.
# #
# You can choose a markup format using the following methods: # You can choose a markup format using the following methods:
# #

View File

@ -233,9 +233,9 @@ class RDoc::Options
attr_accessor :main_page attr_accessor :main_page
## ##
# The default markup format. The default is 'rdoc'. 'markdown', 'tomdoc' # The markup format.
# and 'rd' are also built-in. # One of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+.
# See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats].
attr_accessor :markup attr_accessor :markup
## ##

View File

@ -104,9 +104,8 @@ class RDoc::Task < Rake::TaskLib
attr_accessor :name attr_accessor :name
## ##
# Comment markup format. rdoc, rd and tomdoc are supported. (default is # The markup format; one of: +rdoc+ (the default), +markdown+, +rd+, +tomdoc+.
# 'rdoc') # See {Markup Formats}[rdoc-ref:RDoc::Markup@Markup+Formats].
attr_accessor :markup attr_accessor :markup
## ##

View File

@ -3,13 +3,7 @@
# A parser for TomDoc based on TomDoc 1.0.0-rc1 (02adef9b5a) # A parser for TomDoc based on TomDoc 1.0.0-rc1 (02adef9b5a)
# #
# The TomDoc specification can be found at: # The TomDoc specification can be found at http://tomdoc.org.
#
# http://tomdoc.org
#
# The latest version of the TomDoc specification can be found at:
#
# https://github.com/mojombo/tomdoc/blob/master/tomdoc.md
# #
# To choose TomDoc as your only default format see RDoc::Options@Saved+Options # To choose TomDoc as your only default format see RDoc::Options@Saved+Options
# for instructions on setting up a <code>.rdoc_options</code> file to store # for instructions on setting up a <code>.rdoc_options</code> file to store