Open shyam-ks opened 1 year ago
This currently isn't possible. I looked into this at some point but couldn't easily figure out how to get consistent behaviour with ruaml
. There are questions to be answered like:
If someone wants to look into this and open a PR I'd be happy to discuss/review.
- What happens if there are multiple lines of comments above?
If the logic picks the line above the variable as a comment, it will be easier to manage the comments in terms of readability. Even if there are multi-line comments, reading the one just above the variable should fix it. I believe this is what you meant by multi line comment
# Pull policy
# Image pull policy description.
imagePullPolicy: Always
or standardize comments format to use ## or # --
Sure. Do you have any interest in working on this and opening a PR?
Just bumped into this, looking currently at Frigate as an alternative to helm-docs
.
It is using the prefix # --
to flag something as a comment. The option to put comments right above a parameter is really of value, it's keeping the source file very readable and still allows to automatically generate the README an other auxiliary documentation.
Does anyone already have a view or gut feeling what it would take to add this capability? I've skimmed through the ruyaml documentation and not come across any examples for regular comments. The docs seem to mainly be focused on end-of-line comments attached to something.
It would be great to add this but I don't have the capacity to look at this at the moment. I'd be very happy to review PRs from folks.
is there anyway to get the description added from the comment added above the variable