Open ywh555hhh opened 3 months ago
This issue is currently awaiting triage.
SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted
label.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
Can you assign it to me?
Having been someone that has added this to multiple projects in the past, and someone that is a big proponent of well strucutred and "correct" markdown, I'm a little mixed on this proposal.
There are a couple concerns I have for adding this to k/website.
The current docs have been around for quite some time without enforcing markdown linting. This means there are a lot of issues everywhere in the content that will need to be updated. This will cause a lot of churn and failing tests that will take some effort and attention. Not just for you to make the updates, but for the folks that will need to review those updates and verify nothing accidentally gets broken.
The other concern is the contributor experience. A lot of people are very used to writing markdown that works but is not quite fully spec compliant. I've found it can be very frustrating for casual (and even regular) contributors to write some docs that render just fine locally, only to have jobs fail on their PR for what really ends up being a trivial issue.
So no doubt this would improve the overall quality of our markdown. And it likely would uncover a few cases where there are rendering issues. But as a whole it needs to be decided if this is worth the effort, and if so, how to go about getting all of the existing content in a state that will pass linting without being too disruptive.
I agree with your opinion, stmcginnis. While Markdownlint is an excellent tool and the effort to introduce it is a great idea, there will likely be some challenges.
Another concern is that the Kubernetes community uses Prow instead of GitHub Actions. Is there a good way to run Markdownlint as a Prow Job and have the results commented on the GitHub PR?
A halfway house is to have the job, and have it fail when new changes make a page subjectively “worse“, but still allow a merge.
I also believe that the concerns raised by the seniors are worth discussing, and I'd like to share my thoughts on the three concerns:
@ywh555hhh
I was checking out some discussions on CI and automation. Some helpful PRs / discussions here:
permission: write
. (This is due to a past incident, but I am not familiar with this details.)A halfway house is to have the job, and have it fail when new changes make a page subjectively “worse“, but still allow a merge.
Completely Agree. Linting the entire codebase from the first step will cause many CI errors and confusion.
@ywh555hhh
I was checking out some discussions on CI and automation. Some helpful PRs / discussions here:
- Comment about GHA permissions from GitHub Admins. It seems they do not allow GHA with
permission: write
. (This is due to a past incident, but I am not familiar with this details.)etcd: Add etcd-website lint presubmit job test-infra#33333
- PR to introduce Markdownlint to etcd-io/website. I believe moving this PR forward will lead to its introduction in k/website as well.
Thank you. I'll take the time to look at it as soon as possible
Hi, team. I see that my PR (kubernetes/test-infra#33333) was referenced from this issue. This issue may be related to the work we've been doing at the etcd website. We didn't have a Markdown linter. The main challenge is that enabling it across all the documents on the website will keep CI runs failing, as we don't have a plan/bandwidth to address the warnings across all files. However, we decided to do an incremental check, and we'll be checking (and returning an error) if there are violations in the changes from the PR. Otherwise, it will just raise a warning.
Please take a look at our issues and PRs. They may help set a path/decision on how to do it for k/website:
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
folks, is anyone working on this issue?
Very busy recently
This is a Feature Request
What would you like to be added
I would like to add an automatic markdownlint auditing feature to our website project. This feature would automatically check and highlight potential formatting issues and errors in Markdown files during each commit or edit, ensuring consistency and adherence to formatting standards.
Why is this needed Introducing this feature has several important benefits for our project:
Comments We could consider using the markdownlint tool, which can be integrated into our CI/CD process to ensure automatic auditing on every commit. We can refer to official documentation and example projects for specific configuration and integration methods to implement this feature quickly.
Here are the three main concerns discussed regarding the introduction of the markdownlint automatic auditing feature:
Three Major Concerns
Extensive Updates Required for Existing Documents:
Impact on Contributor Experience:
Technical Implementation and Integration Challenges: