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

Module Markdown Optional Fields #334

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Nalum
Copy link
Contributor

@Nalum Nalum commented Feb 2, 2024

Based on feedback in cue-lang/cue#2783 this PR updates the Markdown document generation to pull the optional fields into the table data. This is done via the cue.Value.Fields() iterator.

@Nalum Nalum marked this pull request as draft February 2, 2024 12:36
@Nalum Nalum force-pushed the module-md-optional-fields branch 2 times, most recently from 238c3e6 to c01dd54 Compare February 2, 2024 15:02
Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
…ults from the module config

Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
@Nalum Nalum force-pushed the module-md-optional-fields branch from b4ba461 to d6d05d7 Compare March 3, 2024 11:31
We want to show the labels field (among others) in the markdown table if
so that it is part of the documentation rather than showing all the
preset labels as individual fields in the docs.

Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
@Nalum
Copy link
Contributor Author

Nalum commented Mar 27, 2024

@stefanprodan with some feedback from the cue team I've gotten this so it now will print the definition of the field, see the README for the blueprints starter module. I want to refine the module so that name and namespace are not output, but wanted to bring it to your attention.

@Nalum
Copy link
Contributor Author

Nalum commented Mar 27, 2024

I'm still not getting what I want from the labels and annotations though :/

Signed-off-by: Luke Mallon (Nalum) <luke@mallon.ie>
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

Successfully merging this pull request may close these issues.

None yet

2 participants