-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[General Documentation] Could/Should we add a markdownlint config? #13858
Comments
It might save time on reviewing and rework too if the linter also gives feedback on pull requests. Do you also plan on configuring a GHA workflow that runs the linter in the openhab-docs repo? |
Can you clarify this? |
I meant using a GHA workflow in both the docs/addons repo that checks the Markdown in PRs using "GitHub Super-Linter Action" and/or "GitHub Actions problem matcher for markdownlint-cli", see Related/GitHub. If that works well we won't have to spend time on manually adding review comments for linting issues in the Markdown and you won't have to create big PRs like #13859/#13866 every now and then to fix the linting issues. 😉 |
Ah ok, then i missunderstood it a bit. Yes, that would be suitable.
Would be ok for me to not have to do this manully. 😄 I would like to not force regular contributors to adapt like 60 to 70% of the current readme files. |
Perhaps we could also use the Markdown formatter in Spotless. It is based on flexmark which is also used in the SAT MarkdownCheck. Flexmark also has several formatting options but unfortunatly currently it is not yet possible to configure the formatting options in Spotless (see docs). I gave it a try by adding the config (9d2bc5e) to see what the results are (f9ab88a). I think with the right config options it could save a lot of time. It is also nice that it can format tables. 🙂 |
@Confectrician it would be greatly appreciated if you can assist in determining the right options. Together we managed to fix many documentation issues in the past year and it would be nice to perpetuate. |
I am working with markdownlint in the docs repository for a while now, to get some consistency into the docs writing.
It is configured via yaml file and runs as GitHub Action for Pull Requests and commits to the main branch and can also be executed while developing locally.
Currently i am working on a pull request to update several docs files, to get consistent contents and the number of errors is pretty big after running the linter locally for the first time.
Maybe it could be useful to share the docs linting config here too and get the ability to lint doc contributions directly.
I am planning to make linting updates from time to time after getting a defined status now on the first run.
Anyway it's alway nice if the incoming quality can be checked already in an early state and a proper linting is way better than tons of (boring) rule files nobody wants to read anyway.
(That's at least my impression from working with it for a while now.)
I can copy the config into the addons repository if @openhab/add-ons-maintainers are interested in adding it here. 🙂
And of course i would take care of keeping it in sync with the docs, if any changes are made.
The text was updated successfully, but these errors were encountered: