-
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,8 @@ The following table summarizes the change in behavior and the mapping of older v | |
Value(s)|Old meaning|New meaning | ||
-|-|- | ||
`auto`|Prompt if required – use cached credentials if possible|_(unchanged)_ | ||
`never`,<br/>`false`| Never prompt – fail if interaction is required|_(unchanged)_ | ||
`always`,<br/>`force`,<br/>`true`|Always prompt – don't use cached credentials|Prompt if required (same as the old `auto` value) | ||
`never`, `false`| Never prompt – fail if interaction is required|_(unchanged)_ | ||
`always`, `force`, `true`|Always prompt – don't use cached credentials|Prompt if required (same as the old `auto` value) | ||
|
||
#### Example | ||
|
||
|
@@ -64,7 +64,7 @@ ID|Provider | |
`azure-repos`|Azure Repos | ||
`github`|GitHub | ||
`bitbucket`|Bitbucket | ||
`gitlab`|GitLab<br/>_(supports OAuth in browser, personal access token and Basic Authentication)_ | ||
`gitlab`|GitLab _(supports OAuth in browser, personal access token and Basic Authentication)_ | ||
`generic`|Generic (any other provider not listed above) | ||
|
||
Automatic provider selection is based on the remote URL. | ||
|
@@ -92,11 +92,11 @@ Select the host provider to use when authenticating by which authority is suppor | |
Authority|Provider(s) | ||
-|- | ||
`auto` _(default)_|_\[automatic\]_ | ||
`msa`, `microsoft`, `microsoftaccount`,<br/>`aad`, `azure`, `azuredirectory`,</br>`live`, `liveconnect`, `liveid`|Azure Repos<br/>_(supports Microsoft Authentication)_ | ||
`github`|GitHub<br/>_(supports GitHub Authentication)_ | ||
`bitbucket`|Bitbucket.org<br/>_(supports Basic Authentication and OAuth)_<br/>Bitbucket Server<br/>_(supports Basic Authentication)_ | ||
`gitlab`|GitLab<br/>_(supports OAuth in browser, personal access token and Basic Authentication)_ | ||
`basic`, `integrated`, `windows`, `kerberos`, `ntlm`,<br/>`tfs`, `sso`|Generic<br/>_(supports Basic and Windows Integrated Authentication)_ | ||
`msa`, `microsoft`, `microsoftaccount`, `aad`, `azure`, `azuredirectory`, `live`, `liveconnect`, `liveid`|Azure Repos _(supports Microsoft Authentication)_ | ||
`github`|GitHub _(supports GitHub Authentication)_ | ||
`bitbucket`|Bitbucket.org _(supports Basic Authentication and OAuth)_, Bitbucket Server _(supports Basic Authentication)_ | ||
`gitlab`|GitLab _(supports OAuth in browser, personal access token and Basic Authentication)_ | ||
`basic`, `integrated`, `windows`, `kerberos`, `ntlm`, `tfs`, `sso`|Generic _(supports Basic and Windows Integrated Authentication)_ | ||
|
||
#### Example | ||
|
||
|
@@ -196,7 +196,6 @@ git config --global credential.httpsProxy http://john.doe:[email protected] | |
Override the available authentication modes presented during Bitbucket authentication. | ||
If this option is not set, then the available authentication modes will be automatically detected. | ||
|
||
|
||
**Note:** This setting only applies to Bitbucket.org, and not Server or DC instances. | ||
|
||
**Note:** This setting supports multiple values separated by commas. | ||
|
@@ -227,7 +226,6 @@ Enabling this option will improve performance when using Oauth2 and interacting | |
|
||
Enabling this option will decrease performance when using Basic Auth by requiring the user the re-enter credentials everytime. | ||
|
||
|
||
Value|Refresh Credentials Before Returning | ||
-|- | ||
`true`, `1`, `yes`, `on` |Always | ||
|
@@ -295,7 +293,6 @@ git config --global credential.gitLabAuthModes "browser" | |
|
||
--- | ||
|
||
|
||
### credential.namespace | ||
|
||
Use a custom namespace prefix for credentials read and written in the OS credential store. | ||
|
@@ -323,7 +320,7 @@ Default value on Windows is `wincredman`, on macOS is `keychain`, and is unset o | |
|
||
Value|Credential Store|Platforms | ||
-|-|- | ||
_(unset)_|Windows: `wincredman`<br/>macOS: `keychain`<br/>Linux: _(none)_|- | ||
_(unset)_|Windows: `wincredman`, macOS: `keychain`, Linux: _(none)_|- | ||
`wincredman`|Windows Credential Manager (not available over SSH).|Windows | ||
`dpapi`|DPAPI protected files. Customize the DPAPI store location with [credential.dpapiStorePath](#credentialdpapistorepath)|Windows | ||
`keychain`|macOS Keychain.|macOS | ||
|
@@ -332,7 +329,7 @@ _(unset)_|Windows: `wincredman`<br/>macOS: `keychain`<br/>Linux: _(none)_|- | |
`cache`|Git's built-in [credential cache](https://git-scm.com/docs/git-credential-cache).|Windows, macOS, Linux | ||
`plaintext`|Store credentials in plaintext files (**UNSECURE**). Customize the plaintext store location with [`credential.plaintextStorePath`](#credentialplaintextstorepath).|Windows, macOS, Linux | ||
|
||
##### Example | ||
#### Example | ||
|
||
```bash | ||
git config --global credential.credentialStore gpg | ||
|
@@ -475,6 +472,7 @@ Credential: "git:https://github.com" (user = alice) | |
https://github.com/contoso/widgets | ||
https://[email protected]/contoso/widgets | ||
``` | ||
|
||
```text | ||
Credential: "git:https://[email protected]" (user = bob) | ||
|
||
|
@@ -489,17 +487,20 @@ Credential: "git:https://github.com/foo/bar" (user = alice) | |
|
||
https://github.com/foo/bar | ||
``` | ||
|
||
```text | ||
Credential: "git:https://github.com/contoso/widgets" (user = alice) | ||
|
||
https://github.com/contoso/widgets | ||
https://[email protected]/contoso/widgets | ||
``` | ||
|
||
```text | ||
Credential: "git:https://[email protected]/foo/bar" (user = bob) | ||
|
||
https://[email protected]/foo/bar | ||
``` | ||
|
||
```text | ||
Credential: "git:https://[email protected]/example/myrepo" (user = bob) | ||
|
||
|
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.