Skip to content
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

Generating Yard documentation for existing LWRP's #12

Open
dasbiswajit opened this issue May 25, 2016 · 3 comments
Open

Generating Yard documentation for existing LWRP's #12

dasbiswajit opened this issue May 25, 2016 · 3 comments

Comments

@dasbiswajit
Copy link

dasbiswajit commented May 25, 2016

Hi Team,
Thanks for fantastic library. My requirement is - I want to show cookbook's LWRP documentation. Is there any way to show this. Here is the code from my recipe-

#Install 'splunkforwarder' package
package 'splunkforwarder' do
  version node['sap-splunk-client']['version']
  action :install
  not_if { File.exist?("#{node['sap-splunk-client']['splunk_home']}/splunk-#{node['sap-splunk-client']['version']}-x86_64-manifest") }
end

I am expecting something to show under resource-

resource

Can you please help me??

@nitinmohan87
Copy link

@dasbiswajit Thanks a lot for your feedback. It has been a while since we looked into this plugin. So, I apologize if I am not making much sense.

Are you asking if this gem adds documentation for existing Chef LWRPs like https://docs.chef.io/resource_package.html (for example)? I don't think it adds documentation for existing LWRPs because the Chef website already has detailed docs for them. The primary use case for this library is to view docs for custom LWRPs that you add to your cookbooks. May I know why would you like to see docs for existing LWRPs in the yard docs?

@damm
Copy link

damm commented May 26, 2016

I personally use yard-chef for my documentation at github.com/damm/backup (I find it really snazzy and I love the presentation)

For me the resource list; lists my LWRP's. What you have listed in your original post was a package resource; it would not be listed there. See my screenshot.

screen shot 2016-05-25 at 7 18 14 pm

@dasbiswajit
Copy link
Author

dasbiswajit commented May 26, 2016

Thank you @nitinmohan87 and @damm for your detail explanation and description. For me as well yard-chef is showing for custom LWRP's. Just wondering if there any way to achieve existing chef resources which is used in recipies. By custom tags, metadata.rb or some other way which will filter the existing LWRP's Like package ,ruby_block, templates...etc.

At least if it shows list of LWRP's used in a cookbook. It will be really help full for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants