-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
chore(lint): Fixed 90-95% of Markdown lint violations across the repository #12587
base: main
Are you sure you want to change the base?
Conversation
…sitory Signed-off-by: Brijeshthummar02 <brijeshthummar02@gmail.com>
bf39fcb
to
fa719f7
Compare
All the markdown files in the |
@glours i just fixed lint issue of markdown i don't think it will affect the test case. |
@Brijeshthummar02 this is not about test cases: files you edited are generated from equivalent yaml files and analysis of go code. CI validates they are up-to-date. By editing those generated files and not the actual source of truth you won't pass the CI |
Also, if you want to promote some Markdown linter, please add a CI workflow to let it run on PRs, not just as a one-time fix |
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.
need to apply change on reference files, not generated markdown
@ndeloof can u suggest exactly which reference files or you mean by all reference files. |
On note i am trying to add GitHub Actions workflow using markdownlint-cli. |
see https://github.com/docker/compose/blob/main/docs/reference/docker_compose.yaml
:+1 please add a CI workflow in your PR as well then |
I would prefer to fix the root cause instead of having a GHA commiting code on user's behalf. |
…wn-lint.yml Signed-off-by: Brijeshthummar02 <brijeshthummar02@gmail.com> :wq
7c41d7e
to
38867ef
Compare
@ndeloof as requested added workflows to this PR and fixed it by not making changes auto instead it shows error in test and if no markdown file changes detected it will simply skip it also made it not to install any other or linters if no changes found. |
The current PR could be merged as long as you don't just fix markdown, but also fix the content source, so that running A possible blocker is about docker/docs being populated based on same reference files (see https://github.com/docker/compose/blob/main/.github/workflows/docs-upstream.yml) - we need to be sure those change won't break docs. Last but not least, I'm not sure we have huge interest adopting a markdown linter, as this doesn't seem to have any impact on our docs nor on existing markdown files in this repo, so maybe better give up with this |
On to that [Last but not least, I'm not sure we have huge interest adopting a markdown linter, as this doesn't seem to have any impact on our docs nor on existing markdown files in this repo, so maybe better give up with this] it just make files clean nothing much and initially this PR was just for fixing existing violations but you said to add a CI workflow to let it run on PRs, not just as a one-time fix. So what should we do now? |
Those seems to be minor, and not aligned with docker/docs conventions as reported by @glours regarding console examples
yes, fixing linter violation only make sense if the linter is also part of your PR, otherwise this is only a question of personal preferences.
Maybe you can tweak the linter rules so it requires less changes and has limited impact on our docs ? |
after your last update, changes still only apply to generated markdown files, not to the actual source of truth (yaml files in same folder). |
0bfd992
to
8f5e445
Compare
Signed-off-by: Brijeshthummar02 <brijeshthummar02@gmail.com> :wq Signed-off-by: Brijeshthummar02 <brijeshthummar02@gmail.com> :wq
7e5aa6c
to
9d03829
Compare
@Brijeshthummar02 I started the CI workflow to show you what will happen if the fix aren't done at the right place As you can see we have a validation step in which the CI is checking that the documentation is up-to-date (flag added/removed, new description of a command, new command added ...). So doing manual changes won't work there, the validation will fail each time and because all the changes in the |
@glours |
…to lint Signed-off-by: Brijeshthummar02 <brijeshthummar02@gmail.com> :wq
1b15f0d
to
fca394b
Compare
What I did
Related issue
(not mandatory) A picture of a cute animal, if possible in relation to what you did