[feat][workflow] add automatic grammar check for code examples in docs #19659
Anonymitaet
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Auto-testing code examples in the docs is a great idea. @Anonymitaet, thanks for raising it. We need it definitely. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
❓ Issue
Currently, as a core part of docs, code examples (snippets) are added in a widespread manner.
Sometimes there are issues in the code examples (e.g., grammar mistakes, indention inconsistencies, etc.) but we do not know until users raise them up.
At intervals, we have PRs focusing on fixing these errors, which is not worth the effort and can be optimized by automatic workflow.
🤔 Solution
Does it make sense to add automatic grammar check for code examples in Pulsar docs?
Along with markdown changes, grammar of code samples are checked in CI/CD process as well.
In this way, PR author can fix errors in a timely manner and ensure that all content is accurate throughout docs.
💡 Example and Referneces
In Rustdoc, code examples are complied as well to ensure that the code is workable.
Code test cases are generated to test the code above.
Referneces:
cc @momo-jun @DaveDuggins @D-2-Ed
Beta Was this translation helpful? Give feedback.
All reactions