- Notifications
You must be signed in to change notification settings - Fork 2.4k
Lint markdown #668
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
Lint markdown #668
Changes from all commits
Commits
Show all changes
12 commits Select commit Hold shift + click to select a range
dbb8e41
Fix md lint errors that do not alter content
wolf99 3f42fce
Fix bare URLs
wolf99 e78add7
Fix inline HTML
wolf99 9f3b269
Remove spaces inside code-span elements
wolf99 637bf1a
Fix multiple top-level headings
wolf99 1f21050
Fix console commands without output
wolf99 a319c6a
Add markdown linting to workflows
wolf99 2379ac1
Fix spellings
wolf99 43ee90b
Ignore lint for anchor for Linux install instructions
wolf99 b48ad39
Adjust list numbering format
wolf99 192b5b7
Improve link reference IDs
wolf99 5b763c0
Fix new list lint issue
wolf99 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "Lint documentation" | ||
| ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main, linux ] | ||
pull_request: | ||
branches: [ main, linux ] | ||
| ||
jobs: | ||
lint-markdown: | ||
name: Lint markdown files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 | ||
| ||
- uses: DavidAnson/markdownlint-cli2-action@744f913a124058ee903768d3adb92a4847e5d132 | ||
with: | ||
globs: "**/*.md" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// For information on writing markdownlint configuration see: | ||
// https://github.com/DavidAnson/markdownlint/blob/main/README.md#optionsconfig | ||
{ | ||
"MD013": false, // Line length and line breaking convention not yet standardised across docs | ||
"MD024": false // The format for some files require repeated headings, e.g. "Example" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Security | ||
| ||
If you discover a security issue in this repo, please submit it through the [GitHub Security Bug Bounty](https://hackerone.com/github) | ||
| ||
Thanks for helping make GitHub products safe for everyone. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
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.
Should we have short names for links in this document similar to those added in
CODE_OF_CONDUCT.md
?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.
Yes! 🙂
I will work on doing this for all markdown files.
At the same time I will replace
aka.ms
links that refer to other docs within this repo with relative links, so as to:Please let me know if this latter part is not wanted.
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.
I am ok with the latter part, but I think @mjcheetham may want to weigh in on this.