-
Notifications
You must be signed in to change notification settings - Fork 911
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
YAML align indent sizes for docs readability #323
Conversation
e8550c9
to
cadb63b
Compare
cadb63b
to
2520816
Compare
I'm sorry, I just did sign contributor license agreement 😭 |
does sphinx / read the docs actually display anything differently, or is this here just for people operating on the source? |
Yes, sphinx / read the docs also makes indenting aligned. For example, currently sphinx doc is not aligned indent-size |
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.
👍
@igalic thanks your review. I was signed the contributor license agreement https://launchpad.net/~nishigori-tak Please re-run github workflows for cla-validate |
Hi @nishigori, I see your signature in our internal tracking system. We just need you to add your name to https://github.com/canonical/cloud-init/blob/master/tools/.github-cla-signers (you should be able to do it as part of this PR), for our automated check to pass. (I haven't reviewed this yet, FYI, just unblocking you on that particular part of the process. 👍) |
OK, I'm going to have a look at this now. Thanks for the submission! One idea that occurs to me is adding some sort of YAML indentation linting check to our CI, so that we will catch any inconsistencies before they're introduced in future. @nishigori, would you be interested in contributing such a check? |
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.
Thanks for taking this on, I think this will be a definite improvement to the docs. I've left some inline comments where I think you may have missed something, but overall this looks really good!
permissions: '0644' | ||
- content: | | ||
# My new /etc/sysconfig/samba file | ||
- encoding: b64 |
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.
Should this (and all the following lines) be indented two extra spaces?
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.
It's not necessary, but I was aligned same like with other files
Hi, @OddBloke thanks your review.
Of course. Specifically, I'd like to turn yamllint or editorconfig in CI. Your review points (mainly indentations in |
On Mon, Apr 20, 2020 at 07:58:10PM -0700, Tak Nishigori wrote:
Hi, @OddBloke thanks your review.
Of course. :)
> One idea that occurs to me is adding some sort of YAML indentation
> linting check to our CI, so that we will catch any inconsistencies
> before they're introduced in future. @nishigori, would you be
> interested in contributing such a check?
Of course. Specifically, I'd like to turn
[yamllint](https://github.com/adrienverge/yamllint) or
[editorconfig](https://editorconfig.org/) in CI.
OK, great!
Your review points (mainly indentations in `list`) I'd like to fix it
after running it in CI
To be clear, I wasn't asking for the linter in this PR. If we fix up
the inconsistencies I've identified (excluding the ones to lists, if you
would prefer), then I think we can land this (as it's a clear
improvement even without a linter) and you can propose a linter as a
follow-up PR. How does that sound?
Thanks!
Dan
|
b06ef42
to
476303f
Compare
Thanks, this PR is only fixed indent alignment (with your identified)
That's right, it is for another time |
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.
LGTM now, thank you!
This proposal has been aligned in a human readable.
$ make yaml
has passed on my-machineI set the indentation size to the largest number of articles in the repository (dictionary:
2
)