-
Notifications
You must be signed in to change notification settings - Fork 188
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
Proposal to add custom notation type #87
Conversation
I attached a sample generated README.md It has to be viewed from my branch so Github can render it as usual. |
Seems I failed the original unittest. I will try to understand the case by generating from the yaml |
Hi, do you have some comments on this? |
Hello @lucernae I'm sorry, I haven't had time to look at this project much this year. I will try to take a thorough look soon |
e1cd68b
to
76d8026
Compare
Hi @lucernae ! Really like the K8S types with link to documentation 👍 I've got a several comments : Why add use Why add
Is this mandatory for parsing? Does these customizations also work in markown tables? |
Hi @seboudry As a disclaimer, I submit this PR as a review for a proposal described here: #86 . As for your question:
This is for semantic purposes only. If the notation type is (tpl/array), that means it is a Go tpl string that will render to an array.
The @notationType only provides notationType field in the renderer. So your renderer can use this information. That means the tpl/xxx can be in any format/convention your renderer can use. In this example, I just made that tpl/xxx means it is a Go template string that will render into an xxx type. The notationType only gives you framework to implement a custom renderer for a type, or link value to the type definition. You need to implement the renderer yourself.
No particular reason. I'm just trying to follow the same convention with existing helm-docs annotations. In the project readme, the author uses |
OK, thanks for your explanations. I hadn't seen on the first time the connection between the tpl/xxx type and Go template. 👏 @norwoodj some free time to take a look at this one? 😉 |
Apologies for being so slow to look at this. I am going to try to take a look at this soon, it is just hard to find the time between life and my real job. |
I took a look at this today. I think this is maybe something worth incorporating, but I'm having trouble understanding what the intended use case is. I think it would help me both understand better and save me some future work if you documented the new features you're adding in the project README. Beyond that, I have a couple of requests:
Thanks again for all the work you've put into this, I do want to merge these changes, I'm just not yet sure I understand how it would be used. |
Hi @norwoodj , thanks for looking at it. Sorry for the late reply, I've been on holiday. I'm going check the recent conflicts first to make sure it is up to date with master, then I will ping you again when it is ready for review. |
Add test files: - Test custom overrides - Test hyperlinks - Test hyperlinks to value Improvements: - Add description about the hyperlinks - Add more sample in the README.md - Add support for multiline description sections - Modify comment continuation regex
It doesn't seem the push triggers the CI. I'm going to close this PR and reopen, so that GH actions will be triggered on reopen. |
Ok, these are the changes:
|
As a reference to the issue #86,
I attached my PR here for review and consideration.