-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recognize Github Flavored Markdown #404
Comments
It works, but it relies on the redcarpet lib, use -M redcarpet. |
GFM is working now, thank you very much! |
No problem :) |
While YARD worked well with GitHub Flavored Markup locally after adding This is the content of my --no-private
--hide-void-return
--markup-provider=redcarpet
--markup=markdown This is how the README should look like: https://github.com/bytesource/rstore/blob/master/README.md Did I miss something or is the option |
Same issue here, identical yarddoc as @bytesource. |
This is probably a rubydoc.info issue, we should open one on http://github.com/lsegal/rubydoc.info |
@lsegal I just did....:-) |
just for the record (in case someone in the future reads this like me) here's what it takes to make this work : In your Gemfile: gem 'yard'
gem 'redcarpet'
gem 'github-markup' In your .yardopts
Thanks! |
Is there a way to use redcarpet/markdown for the README but rdoc for the source files? |
@alindeman EDIT: |
@robgleeson @alindeman Note that this would require you to not have redcloth, kramdown, or bluecloth installed as a gem, or, if you are loading yard from bundler (bundle exec yard), only list the above gems in your gemfile. Unfortunately we don't currently |
Nice, this works as long as $ yardoc */lib/**/*.rb - README.md Definitely +1 for Github Flavored Markup in rdoc.info. Thanks again all! |
Hmm...I can't get this to work at all :(. I followed the instructions that @nikosd gave above. Can someone tell me what I'm doing wrong? My attempt to use GFM is here. |
I can't reproduce it not working. Note that the --markup-provider is no longer necessary as redcarpet is the default markdown provider now. Are you just looking to highlight a readme? Can you point to the specific parts that aren't working? |
Here's what I'm seeing in my local browser: It looks like it's working on rubydoc.info so I'm not sure what I'm doing wrong :(. Here's my shell output from what I'm doing. Note that I'm deleting
|
I'm also having no luck with this. I've created the following project: https://github.com/obrie/gfm_doc_test In that project, I've listed the gems installed (via Any thoughts? edit: May also be worth noting that this was generated using Ruby 1.8.7 |
You should be using redcarpet 1.x, 2.x is not yet compatible with YARD. (2.x was released after 0.7.4 was) |
Bingo -- that was it. Thanks! |
Further to this (in case it helps anyone) - I was having problems using "bundle exec yardoc" because although I had changed my Gemfile to use redcarpet 1.x, redcarpet 2.x was still on my system. I believe you need to gem uninstall redcarpet 2.x for it to work (I guess it's simply shelling out to the redcarpet command) |
I encountered a similar problem. After uninstalling redcarpet 3.x and install 2.3.0, GFM works. |
Yikes, this is not up to date, is it? |
In my README files I use features from Github Flavored Markdown, such as code highlighting and awareness for underscores inside a word, but YARD does not recognize them.
Adding github-markup as a markup provider to .yardopts
-M github-markup
resulted in an error:
Is there a way to make YARD parse Github Flavored Markdown? If not, I would suggest this as a new feature, especially because services like RubyDoc.info fetch their data from Github repos.
Stefan
The text was updated successfully, but these errors were encountered: