-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Idea/FeatureRequest: HTML - Add switches for yaml comments / minimum example in Details of each resource #127
Comments
Hello. :))
I'm not sure I understand this one. The YAML part is displayed in a code displaying thing, there is nothing you can toggle.
Hum, maybe I can do this. I would have to generate the content twice, have two containers, one in one and the other in the otherone and you can then toggle which content you would like to see. 🤔 That's rather ugly, but there is no other way. This is a static site generated so it needs to have ALL of the data it wants to display. |
The problem is that that section is a code display block. 🤔 For that to work, I would have to generate everything and display a code section that has the comment is full... etc. That's 4 times the entire yaml.
That could possible take some time and would result in a considerably larger HTML output. |
Got it - not that good ^^ What about something like this (needs more styling, but somehow works) I think there is more logic required for filtering out "optional comments". Wont use code anymore, but styling could be done in div also.
|
I'm not following this, sorry. The displayed content is simply a |
Ok, no problem - will think about it - maybe I finde a more practical solution :-) |
Thanks! :) Maybe we can somehow format it line by line. :D I don't know. :D I'm pretty sure it's possible. :P |
I use
cty
to generate HTML documentation from a folder of my CRDs, and it works wonderfully!The existing detailed section for each resource is helpful, but it could be enhanced further by introducing configurable options to provide greater flexibility and clarity.
Feature Request
Enrich the Existing Detail-Section
It would be incredibly useful if cty could extend the current detailed section for each resource to include the following configurable options:
Show/Hide Comments: A switch to allow showing or not showing the comments above each line of the YAML document if present - similar to the already existing crd flag:
-m, --comments If set, it will add descriptions as comments to each line where available.
Minimal vs. All Parameters: A switch to allow toggling between showing a minimal example and an example with all parameters - similar to the already existing crd flag:
-l, --minimal If set, only the minimal required example yaml is generated.
Benefits
I think this would make this awesome tool even better!
The text was updated successfully, but these errors were encountered: