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

Make konstraint doc allow to skip rego code in output #148

Closed
wayfrro opened this issue Apr 23, 2021 · 3 comments · Fixed by #154
Closed

Make konstraint doc allow to skip rego code in output #148

wayfrro opened this issue Apr 23, 2021 · 3 comments · Fixed by #154
Labels
enhancement New feature or request

Comments

@wayfrro
Copy link

wayfrro commented Apr 23, 2021

So there's this cool konstraint doc command, but what if target user do not need rego code in docs? It would nice to be still able to generate docs from metadata, but just skip rego code. Do you guys think it's possible?

@jpreese jpreese added the enhancement New feature or request label Apr 23, 2021
@jpreese
Copy link
Collaborator

jpreese commented Apr 23, 2021

Definitely possible. A new flag to control whether or not to render the Rego source should do the trick!

@jalseth
Copy link
Collaborator

jalseth commented May 2, 2021

Implemented in #154. @wayfrro Please take a look at the example documentation in that PR and confirm it meets your expectations about behavior and output.

@wayfrro
Copy link
Author

wayfrro commented May 5, 2021

@jalseth That looks good to me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants