-
Notifications
You must be signed in to change notification settings - Fork 0
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
Attributes are not parsed when written in explicit style #1
Comments
Hi, Glad to see that people are actually using chefdoc. Can you give an example on where this does not work? I actually have a test fixture for this [1] which is parsed correctly, although I just found that the precedence is incorrect which I will fix soon.
|
Have a look at this Gist, this is how all our attribute files look like here. |
I used the CLI with
|
Oh, you are using yard-chef [1] which is in my eyes quite old and outdated which is why I started this new project calld yard-chefdoc. There also is a webapp similar to rubydoc.info available at https://www.chefdoc.info. You can use this gem in a similar way as yard-chef but it is cookbook centric and thus has to be used on a single cookbook and not on a chef repo. |
Oh, my bad. I'll check with yard-chefdoc |
Now I get
because the first two lines are just header in this file:
|
Hmm, seems not to be so easy to have (dynamic) attributes documented automatically. |
Wow, this attributes file really is quite a mess (sorry). As a rule of thumb, try to use attributes only for the stuff a user really should be able to override in nodes/environments/roles/wrapper cookbooks. But thanks for the example and I will have a look at it and check if there are at least some bits that can be parsed and documented automatically. |
Indeed, no offense taken :) Thank you for having a look at this. |
Attributes from attributes/ are not parsed when written in explicit style as "node.level" (e.g.
node.default['mycookbook']['users']
)The text was updated successfully, but these errors were encountered: