You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an issue with --one-file or YARD. By default, YARD uses rdoc style markup in .rb files. If you wish to use Markdown as your markup format, you must specify it via -m markdown, see yard doc --help.
I disagree. As you can see on the screenshots, the behavior is different with and without --one-file. I can post a screen recording that shows the whole flow.
Here's a screen recording that shows how I generate the documentation both with and without the --one-file flag. I show both results in the browser side by side:
The
--one-file
flag does not interpret Markdown by default in theREADME.md
file (I have not checked other non-source files).Steps to reproduce
index.html
in the browserActual Output
The Markdown in the
README.md
has not been interpreted.Notice how
# Foo
is output from theREADME.md
, but the Markdown in thefoo.rb
file has been interpreted and output as expected.Expected Output
I expect the Markdown to be interpreted, this is what happens without the
--one-file
flag:Environment details:
ruby -v
): ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-darwin20]yard -v
): yard 0.9.27The text was updated successfully, but these errors were encountered: