Skip to content

Commit 104b6a9

Browse files
Merge branch 'mdn:main' into main
2 parents 06c23f5 + f2a3549 commit 104b6a9

File tree

11,496 files changed

+179076
-104417
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

11,496 files changed

+179076
-104417
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
/.github/ @mdn/core-dev
7878
/* @mdn/core-dev
7979
/*.md @mdn/core-yari-content
80-
# These are @schalkneethling because the auto-merge GHA workflow uses my PAT and will assign me.
81-
# If we add another reviewer, the auto-merge will cease to be automatic.
82-
/package.json @schalkneethling
83-
/yarn.lock @schalkneethling
80+
# These are @mdn-bot because the auto-merge GHA workflow uses the PAT of this account.
81+
# If another reviewer is specified, update the PAT token or auto-merge will cease to be automatic.
82+
/package.json @mdn-bot
83+
/yarn.lock @mdn-bot

.github/issue-regex-labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ Content:CSS:
44
- '\/docs\/Web\/CSS'
55
Content:Events:
66
- '\/docs\/Web\/Events'
7+
Content:Firefox:
8+
- '\/docs\/Mozilla/Firefox'
9+
Content:Games:
10+
- '\/docs\/Games'
711
Content:Glossary:
812
- '\/docs\/Glossary'
13+
Content:Guide:
14+
- '\/docs\/Web/Guide'
915
Content:HTML:
1016
- '\/docs\/Web\/HTML'
1117
Content:HTTP:
@@ -24,6 +30,8 @@ Content:Learn:CSS:
2430
- '\/docs\/Learn\/CSS'
2531
Content:Learn:Django:
2632
- '\/docs\/Learn\/Server-side\/Django'
33+
Content:Learn:Express:
34+
- '\/docs\/Learn\/Server-side\/Express_Nodejs'
2735
Content:Learn:Forms:
2836
- '\/docs\/Learn\/Forms'
2937
Content:Learn:GitHub:
@@ -34,8 +42,16 @@ Content:Learn:JavaScript:
3442
- '\/docs\/Learn\/JavaScript'
3543
Content:Manifest:
3644
- '\/docs\/Web\/Manifest'
45+
Content:MathML:
46+
- '\/docs\/Web\/MathML'
47+
Content:Media:
48+
- '\/docs\/Web\/Media'
49+
Content:Meta:
50+
- '\/docs\/MDN'
3751
Content:Performance:
3852
- '\/docs\/Web\/Performance'
53+
Content:PWA:
54+
- '\/docs\/Web\/Progressive_web_apps'
3955
Content:Security:
4056
- '\/docs\/Web\/Security'
4157
Content:SVG:

.github/labeler.yml

Lines changed: 71 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,85 @@
1+
system:
2+
- package.json
3+
- yarn.lock
4+
- .github/**/*
5+
- .husky/**/*
6+
- .vscode/**/*
7+
- .*
8+
- scripts/**/*
9+
- tests/**/*
10+
- jest.config.json
11+
- front-matter-config.json
12+
113
Content:Accessibility:
214
- files/en-us/web/accessibility/**/*
315
Content:CSS:
416
- files/en-us/web/css/**/*
5-
Content:DevTools:
6-
- files/en-us/tools/**/*
17+
Content:Events:
18+
- files/en-us/web/events/**/*
19+
Content:Firefox:
20+
- files/en-us/mozilla/firefox/**/*
21+
Content:Games:
22+
- files/en-us/games/**/*
723
Content:Glossary:
824
- files/en-us/glossary/**/*
25+
Content:Guide:
26+
- files/en-us/web/guide/**/*
927
Content:HTML:
1028
- files/en-us/web/html/**/*
1129
Content:HTTP:
1230
- files/en-us/web/http/**/*
1331
Content:JS:
1432
- files/en-us/web/javascript/**/*
33+
Content:Learn:
34+
- any:
35+
- files/en-us/learn/**/*
36+
- "!files/en-us/learn/accessibility/**/*"
37+
- "!files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/**/*"
38+
- "!files/en-us/learn/tools_and_testing/understanding_client-side_tools/**/*"
39+
- "!files/en-us/learn/tools_and_testing/cross_browser_testing/**/*"
40+
- "!files/en-us/learn/css/**/*"
41+
- "!files/en-us/learn/server-side/django/**/*"
42+
- "!files/en-us/learn/server-side/express_nodejs/**/*"
43+
- "!files/en-us/learn/forms/**/*"
44+
- "!files/en-us/learn/tools_and_testing/github/**/*"
45+
- "!files/en-us/learn/html/**/*"
46+
- "!files/en-us/learn/javascript/**/*"
47+
- files/en-us/web/tutorials/**/*
48+
Content:Learn:Accessibility:
49+
- files/en-us/learn/accessibility/**/*
50+
Content:Learn:Client-side:
51+
- files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/**/*
52+
- files/en-us/learn/tools_and_testing/understanding_client-side_tools/**/*
53+
Content:Learn:Cross-Browser-Testing:
54+
- files/en-us/learn/tools_and_testing/cross_browser_testing/**/*
55+
Content:Learn:CSS:
56+
- files/en-us/learn/css/**/*
57+
Content:Learn:Django:
58+
- files/en-us/learn/server-side/django/**/*
59+
Content:Learn:Express:
60+
- files/en-us/learn/server-side/express_nodejs/**/*
61+
Content:Learn:Forms:
62+
- files/en-us/learn/forms/**/*
63+
Content:Learn:GitHub:
64+
- files/en-us/learn/tools_and_testing/github/**/*
65+
Content:Learn:HTML:
66+
- files/en-us/learn/html/**/*
67+
Content:Learn:JavaScript:
68+
- files/en-us/learn/javascript/**/*
69+
Content:Manifest:
70+
- files/en-us/web/manifest/**/*
1571
Content:MathML:
1672
- files/en-us/web/mathml/**/*
1773
Content:Media:
1874
- files/en-us/web/media/**/*
75+
Content:Meta:
76+
- files/en-us/mdn/**/*
77+
Content:Performance:
78+
- files/en-us/web/performance/**/*
79+
Content:PWA:
80+
- files/en-us/web/progressive_web_apps/**/*
81+
Content:Security:
82+
- files/en-us/web/security/**/*
1983
Content:SVG:
2084
- files/en-us/web/svg/**/*
2185
Content:wasm:
@@ -26,27 +90,17 @@ Content:WebDriver:
2690
- files/en-us/web/webdriver/**/*
2791
Content:WebExt:
2892
- files/en-us/mozilla/add-ons/webextensions/**/*
29-
Content:Learn:
30-
- files/en-us/learn/**/*
31-
- files/en-us/web/guide/**/*
32-
- files/en-us/web/tutorials/**/*
3393
Content:Other:
34-
- files/en-us/games/**/*
35-
- files/en-us/mdn/**/*
36-
- files/en-us/mozilla/**/*
37-
- files/en-us/plugins/**/*
94+
- any:
95+
- files/en-us/mozilla/**/*
96+
- "!files/en-us/mozilla/add-ons/webextensions/**/*"
97+
- "!files/en-us/mozilla/firefox/**/*"
3898
- files/en-us/related/**/*
39-
- files/en-us/tools/**/*
4099
- files/en-us/web/demos/**/*
41-
- files/en-us/web/events/**/*
42100
- files/en-us/web/exslt/**/*
43-
- files/en-us/web/manifest/**/*
44101
- files/en-us/web/opensearch/**/*
45-
- files/en-us/web/performance/**/*
46102
- files/en-us/web/privacy/**/*
47-
- files/en-us/web/progressive_web_apps/**/*
48-
- files/en-us/web/security/**/*
49-
- files/en-us/web/web_components/**/*
103+
- files/en-us/web/text_fragments/**/*
50104
- files/en-us/web/xml/**/*
51105
- files/en-us/web/xpath/**/*
52106
- files/en-us/web/xslt/**/*
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Create content auto-fix PR
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
fix:
10+
if: github.repository == 'mdn/content'
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js environment
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version-file: ".nvmrc"
20+
cache: yarn
21+
22+
- name: Install all yarn packages
23+
run: yarn --frozen-lockfile
24+
env:
25+
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
HUSKY: 0
28+
29+
- name: Lint markdown files
30+
run: |
31+
yarn content fix-flaws
32+
yarn fix:md
33+
yarn fix:fm
34+
35+
- name: Create PR with only fixable issues
36+
if: success()
37+
uses: peter-evans/create-pull-request@v5
38+
with:
39+
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues"
40+
branch: markdownlint-auto-cleanup
41+
title: "fix: auto-cleanup by bot"
42+
author: mdn-bot <108879845+mdn-bot@users.noreply.github.com>
43+
body: |
44+
All issues auto-fixed
45+
token: ${{ secrets.AUTOMERGE_TOKEN }}
46+
47+
- name: Create PR with notice on unfixed issues
48+
if: failure()
49+
uses: peter-evans/create-pull-request@v5
50+
with:
51+
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues"
52+
branch: markdownlint-auto-cleanup
53+
title: "fix: auto-cleanup by bot"
54+
author: mdn-bot <108879845+mdn-bot@users.noreply.github.com>
55+
body: |
56+
Auto-fix was run, but additional issues found.
57+
Please review the run log: https://github.com/mdn/content/actions/runs/${{ github.run_id }}
58+
token: ${{ secrets.AUTOMERGE_TOKEN }}

.github/workflows/interfacedata-updater.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Setup node.js
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version-file: ".nvmrc"
19-
2015
- name: Checkout content
21-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
2217
with:
2318
path: mdn-content
2419
ref: main
2520

21+
- name: Setup node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version-file: "mdn-content/.nvmrc"
25+
2626
- name: Checkout webref
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
with:
2929
repository: w3c/webref
3030
path: webref
@@ -35,7 +35,7 @@ jobs:
3535
run: node scripts/update-interface-data.js ../webref/
3636

3737
- name: Create pull request
38-
uses: peter-evans/create-pull-request@v4
38+
uses: peter-evans/create-pull-request@v5
3939
with:
4040
path: mdn-content
4141
token: ${{ secrets.AUTOMERGE_TOKEN }}

.github/workflows/issue-regex-labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
issue-labeler:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: github/issue-labeler@v3.0
10+
- uses: github/issue-labeler@v3.3
1111
with:
1212
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1313
configuration-path: .github/issue-regex-labeler.yml

.github/workflows/markdown-lint-fix.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/markdown-lint.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths:
88
- .markdownlint-cli2.jsonc
99
- .nvmrc
10+
- .prettier*
1011
- package.json
1112
- yarn.lock
1213
- .github/workflows/markdown-lint.yml
@@ -17,18 +18,22 @@ jobs:
1718
runs-on: ubuntu-latest
1819

1920
steps:
20-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2122

2223
- name: Setup Node.js environment
23-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2425
with:
2526
node-version-file: ".nvmrc"
2627
cache: yarn
2728

2829
- name: Install all yarn packages
2930
run: yarn --frozen-lockfile
31+
env:
32+
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3034

3135
- name: Lint markdown files
3236
run: |
3337
echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json"
3438
yarn lint:md
39+
yarn lint:fm

0 commit comments

Comments
 (0)