Summary | Converts content written in RDoc markup to HTML |
---|---|
Short name | rdoc |
Content type | text |
Extension mapping | {"rdoc"=>"html"} |
Provided by bundle | built-in |
API doc | Webgen::ContentProcessor::RDoc |
Description
This content processors converts content written in the RDoc markup (the default documentation format for Ruby source files) to HTML.
Usage
This processor is intended to be used in the processing pipeline of page files.
Have a look at the RDoc reference for more information on the supported markup!
Example
Here is a short sample of a text in RDoc markup:
= This a h1 header
You can just write *your* paragraphs here and link[http://someurl.example.com] them below.
This is also a _nice_ format!
* Lists
* aren't
* difficult
* either.
When processed by this processor, the output would look like this:
<h1 id="label-This+a+h1+header">This a h1 header<span><a href="#label-This+a+h1+header">¶</a> <a href="#top">↑</a></span></h1>
<p>You can just write <strong>your</strong> paragraphs here and <a href="http://someurl.example.com">link</a> them below. This is also a <em>nice</em> format!</p>
<ul><li>
<p>Lists</p>
</li><li>
<p>aren't</p>
</li><li>
<p>difficult</p>
</li><li>
<p>either.</p>
</li></ul>