Skip to content

Update docs to recommend markdownlint-cli2 #20

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

Merged
merged 3 commits into from
Dec 22, 2022
Merged

Update docs to recommend markdownlint-cli2 #20

merged 3 commits into from
Dec 22, 2022

Conversation

khiga8
Copy link
Contributor

@khiga8 khiga8 commented Dec 22, 2022

Fixes: #19

This PR updates the docs to recommend using markdownlint-cli2 because it is compatible with the VSCode plugin, while markdownlint-cli is not. This updates the configuration setup accordingly. I've replaced the configuration setup for the markdownlinting of this repo as well.

Additionally, this PR introduces a list of the rules defined by this library. We can introduce more comprehensive docs for these rules as part of #12.


### Should I disable rules enabled by this plugin?

This plugin will enable the defaults defined by `markdownlint`. Several of these pertain to stylistic practices. You may choose to disable these rules if you determine it doesn't provide value for your project.
Copy link
Contributor Author

@khiga8 khiga8 Dec 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new section.

I think this guidance aligns with the intent mentioned https://github.com/github/accessibility/pull/1614#discussion_r942717616.

enable all defaults and show explicitly which rules we're not adhering to.


However, others of these rules should **NOT** be disabled because they encourage best accessibility practices. Disabling these rules will negatively impact accessibility. These rules are specified in [accessibility.json](./accessibility.json).

## Rules
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new section. More comprehensive docs can be added in #12.

readme.md Outdated
```

Notice that disabling some rules will have a negative impact on accessibility.
5. Install the [`vscode-markdownlint`](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint) plugin to ensure `markdownlint` violations are surfaced in the file. This plugin should flag rules based off your `.markdownlint-cli2.cjs` configuration.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new step.

@khiga8 khiga8 marked this pull request as ready for review December 22, 2022 15:48
@khiga8 khiga8 requested a review from a team as a code owner December 22, 2022 15:48
@accessibility-bot
Copy link
Collaborator

👋 Hello and thanks for pinging us! An accessibility first responder will review this soon.

  • 💻 On PRs for our review: please provide a review environment with steps to validate, screenshots (with alt text), or videos (with description following) demonstrating functionality we should be checking. This will help speed up our review and feedback cycle.
  • ⚠️ If this is urgent, please visit us in #accessibility on Slack and tag the first responder(s) listed in the channel topic.

@@ -0,0 +1,12 @@
const options = require('./index.js').init({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converting to use markdownlint-cli2 in this project to align with our recs.

@khiga8 khiga8 merged commit ecb590a into main Dec 22, 2022
@khiga8 khiga8 deleted the kh-update-docs branch December 22, 2022 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update guidance to recommend markdowncli-2 and to use the VSCode extension
3 participants