Skip to content

Commit

Permalink
Merge branch 'main' into prettier-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Nov 10, 2022
2 parents 07da76c + df75ff2 commit 8a7d1e0
Show file tree
Hide file tree
Showing 1,334 changed files with 9,802 additions and 10,857 deletions.
1 change: 1 addition & 0 deletions .github/workflows/markdown-lint-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
fix:
if: github.repository == 'mdn/content'
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check_markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v29.0.9
uses: tj-actions/changed-files@v34.3.4
with:
files: "**/*.md"

Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/pr-rebase-needed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "PR Needs Rebase"

on:
push:
pull_request_target:
types: [synchronize]

jobs:
label-rebase-needed:
uses: mdn/workflows/.github/workflows/pr-rebase-needed.yml@main
with:
target-repo: "mdn/content"
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@
"replace": "'",
"skipCode": true
},
{
"name": "nbsp",
"message": "Don't use no-break spaces",
"searchPattern": "/ /g",
"replace": " ",
"skipCode": false
},
{
"name": "m-dash",
"message": "Don't use '--'. Use m-dash — instead",
Expand All @@ -151,6 +158,12 @@
"replace": "(/en-US/docs",
"skipCode": true
},
{
"name": "relative-link-path",
"message": "Don't use relative paths",
"search": "](..",
"skipCode": true
},
{
"name": "trailing-spaces",
"message": "Avoid trailing spaces",
Expand All @@ -164,6 +177,13 @@
"searchPattern": "/([^\\s>]) ([^\\s|])/g",
"replace": "$1 $2",
"skipCode": true
},
{
"name": "stuck-definition",
"message": "Character is stuck to definition description marker",
"searchPattern": "/- :(\\w)/g",
"replace": "- : $1",
"skipCode": true
}
]
}
Expand Down
126 changes: 69 additions & 57 deletions files/en-us/_redirects.txt

Large diffs are not rendered by default.

Loading

0 comments on commit 8a7d1e0

Please sign in to comment.