-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: add option for tabulating variables #693
Conversation
Oh that's very compact, and easy to read, @xoxys will you be ok to make that output the default ? |
Mhm, I don't think so. That would be an (unnecessary) breaking change for users and quickly become difficult to read (e.g. long var names, descriptions, especially on small screens). |
@chipselden Thanks for your contribution! I'll need some time to look into it. |
@xoxys - Thanks, much appreciated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small findings so far. Would be cool if we can add it to the hugo-book
template as well. We should also add documentation for the new config option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, I was on vacation. LGTM
After some more tests, this approach IMO has some real disadvantages, especially if it comes to multiline strings and code blocks e.g. from more complex usage examples. I'll add a hint to the docs. |
Much appreciated, and I agree, it's not going to be the cleanest for every case, but could be nice in others. Thanks again! |
Description
Adding an configuration option which will render the Default Variables in a Markdown table rather than in separate sub-headings.
Usage
Notes
|
characters are escaped\n
characters are converted into<br>
characterstabulate_variables
is set totrue
hugo-book
template, but can be done so easilyExample
Defaults/main.yml
Output
Text
Rendered
Options:
* red
* blue
* green
* purple