I want to include image in yard-genereted documentation, but can't find anywhere how to do this... Does anyone know how to do this?
You can just add <img />
tag to your documentation:
# Blah-blah
#
# <img src=img/1.png />
# @param [String] blah
# @return [String] blah
def foo(bar)
end
Use rdoc-image:
links:
# Gets foo.
#
# rdoc-image:img/1.png
def foo(bar)
"foo"
end
is rendered by YARD into
<p>Gets foo.</p>
<p><img src="img/1.png"></p>
The rdoc-images:
also works in standalone *.rdoc
files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With