Skip to content

Commit

Permalink
Merge branch 'main' into fix-globals-part-1
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg authored Feb 29, 2024
2 parents 75b5907 + f568a3d commit ed19009
Show file tree
Hide file tree
Showing 1,496 changed files with 12,252 additions and 6,208 deletions.
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Baseline issue
url: https://github.com/web-platform-dx/web-features
about: Baseline issues should be reported in the repository hosting Baseline data.
- name: Content or feature request
url: https://github.com/mdn/mdn/issues/new/choose
about: Propose new content for MDN Web Docs or submit a feature request using this link.
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/auto-cleanup-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,31 @@ jobs:
- name: Create PR with only fixable issues
if: success()
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues"
branch: markdownlint-auto-cleanup
title: "fix: auto-cleanup by bot"
author: mdn-bot <[email protected]>
committer: mdn-bot <[email protected]>
body: |
All issues auto-fixed
labels: |
automated pr
token: ${{ secrets.AUTOMERGE_TOKEN }}

- name: Create PR with notice on unfixed issues
if: failure()
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore: auto-fix Markdownlint, Prettier, and front-matter issues"
branch: markdownlint-auto-cleanup
title: "fix: auto-cleanup by bot"
author: mdn-bot <[email protected]>
committer: mdn-bot <[email protected]>
body: |
Auto-fix was run, but additional issues found.
Please review the run log: https://github.com/mdn/content/actions/runs/${{ github.run_id }}
labels: |
automated pr
token: ${{ secrets.AUTOMERGE_TOKEN }}
5 changes: 4 additions & 1 deletion .github/workflows/interfacedata-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ jobs:
run: node scripts/update-interface-data.js ../webref/

- name: Create pull request
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
path: mdn-content
token: ${{ secrets.AUTOMERGE_TOKEN }}
title: Update InterfaceData based on WebRef
author: mdn-bot <[email protected]>
committer: mdn-bot <[email protected]>
commit-message: Update InterfaceData based on WebRef
body: Automated changes generated by scripts/update-interface-data via interface-updater github workflow
labels: |
automated pr
delete-branch: true
branch: interfacedata-update
2 changes: 1 addition & 1 deletion .github/workflows/issue-regex-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
issue-labeler:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3.3
- uses: github/issue-labeler@v3.4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/issue-regex-labeler.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ping-other-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Ping w3c/mdn-spec-links
# This is one of many possible repos we can ping. When adding other
# repos, you can follow this w3c/mdn-spec-links one as an example.
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.REPO_PINGER_MDN_SPEC_LINKS }}
repository: w3c/mdn-spec-links
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-check_redirects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# This is a "required" workflow so path filtering can not be used:
# https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
# We have to rely on a custom filtering mechanism to run the checks only if required files are modified.
- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
name: See if any file needs checking
id: filter
with:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/pr-check_url-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check URL issues

on:
pull_request:
branches:
- main
paths:
- "files/**/*.md"

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

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: yarn

- name: Check URL deletions and broken fragments
run: |
echo "::add-matcher::.github/workflows/url-issues-problem-matcher.json"
git fetch origin main
node scripts/log-url-issues.js --workflow
6 changes: 3 additions & 3 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
xs_label: "size/xs"
xs_max_size: "5"
s_label: "size/s"
s_max_size: "10"
s_max_size: "50"
m_label: "size/m"
m_max_size: "50"
m_max_size: "500"
l_label: "size/l"
l_max_size: "100"
l_max_size: "1000"
xl_label: "size/xl"
fail_if_xl: "false"
message_if_xl: ""
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/url-issues-problem-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "log-url-issues",
"severity": "error",
"pattern": [
{
"regexp": "^(ERROR|WARN|INFO):(.+):(\\d+):(\\d+):(.+)$",
"severity": 1,
"file": 2,
"line": 3,
"column": 4,
"message": 5
}
]
}
]
}
16 changes: 16 additions & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env sh

BRANCH="$(git rev-parse --abbrev-ref HEAD)"
if [ "$BRANCH" != "main" ]; then
exit 0
fi

if [ -f ".husky/_/history" ]; then
lastHash=$(cat ./.husky/_/history)
isUpdated=$(git diff $lastHash HEAD -- ./package.json)
if [ "$isUpdated" != "" ]; then
echo "\n⚠🔥 'package.json' has changed. Please run 'yarn install'! 🔥"
fi
else
yarn install
fi
3 changes: 2 additions & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"prettier --write"
],
"tests/**/*.*": "yarn test:front-matter-linter",
"*.{svg,png,jpeg,jpg,gif}": "yarn filecheck"
"*.{svg,png,jpeg,jpg,gif}": "yarn filecheck",
"*": "node scripts/log-url-issues.js"
}
3 changes: 2 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@
"path": "./project-words.txt",
"addWords": true
}
]
],
"enableFiletypes": ["xml"]
}
15 changes: 9 additions & 6 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@
/en-US/docs/CSS/background-position /en-US/docs/Web/CSS/background-position
/en-US/docs/CSS/background-repeat /en-US/docs/Web/CSS/background-repeat
/en-US/docs/CSS/background-size /en-US/docs/Web/CSS/background-size
/en-US/docs/CSS/block_formatting_context /en-US/docs/Web/Guide/CSS/Block_formatting_context
/en-US/docs/CSS/block_formatting_context /en-US/docs/Web/CSS/CSS_display/Block_formatting_context
/en-US/docs/CSS/border /en-US/docs/Web/CSS/border
/en-US/docs/CSS/border-bottom /en-US/docs/Web/CSS/border-bottom
/en-US/docs/CSS/border-bottom-color /en-US/docs/Web/CSS/border-bottom-color
Expand Down Expand Up @@ -799,7 +799,7 @@
/en-US/docs/CSS/repeating-radial-gradient /en-US/docs/Web/CSS/gradient/repeating-radial-gradient
/en-US/docs/CSS/resize /en-US/docs/Web/CSS/resize
/en-US/docs/CSS/resolution /en-US/docs/Web/CSS/resolution
/en-US/docs/CSS/rgb /en-US/docs/Web/CSS/color_value#rgb()_and_rgba()
/en-US/docs/CSS/rgb /en-US/docs/Web/CSS/color_value/rgb
/en-US/docs/CSS/right /en-US/docs/Web/CSS/right
/en-US/docs/CSS/scroll /en-US/docs/Web/CSS/overflow
/en-US/docs/CSS/shape /en-US/docs/Web/CSS/shape
Expand Down Expand Up @@ -984,7 +984,7 @@
/en-US/docs/CSS:background-image /en-US/docs/Web/CSS/background-image
/en-US/docs/CSS:background-position /en-US/docs/Web/CSS/background-position
/en-US/docs/CSS:background-repeat /en-US/docs/Web/CSS/background-repeat
/en-US/docs/CSS:block_formatting_context /en-US/docs/Web/Guide/CSS/Block_formatting_context
/en-US/docs/CSS:block_formatting_context /en-US/docs/Web/CSS/CSS_display/Block_formatting_context
/en-US/docs/CSS:border /en-US/docs/Web/CSS/border
/en-US/docs/CSS:border-bottom /en-US/docs/Web/CSS/border-bottom
/en-US/docs/CSS:border-bottom-color /en-US/docs/Web/CSS/border-bottom-color
Expand Down Expand Up @@ -8695,6 +8695,7 @@
/en-US/docs/Web/API/IDBKeyRange/lowerBound /en-US/docs/Web/API/IDBKeyRange/lowerBound_static
/en-US/docs/Web/API/IDBKeyRange/only /en-US/docs/Web/API/IDBKeyRange/only_static
/en-US/docs/Web/API/IDBKeyRange/upperBound /en-US/docs/Web/API/IDBKeyRange/upperBound_static
/en-US/docs/Web/API/IDBLocaleAwareKeyRange /en-US/docs/Web/API/IDBIndex
/en-US/docs/Web/API/IDBMutableFile /en-US/docs/Web/API/IndexedDB_API
/en-US/docs/Web/API/IDBMutableFile/abort_event /en-US/docs/Web/API/IndexedDB_API
/en-US/docs/Web/API/IDBMutableFile/error_event /en-US/docs/Web/API/IndexedDB_API
Expand Down Expand Up @@ -11378,7 +11379,7 @@
/en-US/docs/Web/CSS/Alias /en-US/docs/Web/CSS/cursor
/en-US/docs/Web/CSS/All_About_The_Containing_Block /en-US/docs/Web/CSS/Containing_block
/en-US/docs/Web/CSS/Aural /en-US/docs/Web/CSS/@media/aural
/en-US/docs/Web/CSS/Block_formatting_context /en-US/docs/Web/Guide/CSS/Block_formatting_context
/en-US/docs/Web/CSS/Block_formatting_context /en-US/docs/Web/CSS/CSS_display/Block_formatting_context
/en-US/docs/Web/CSS/CSS3_Columns /en-US/docs/Web/CSS/CSS_multicol_layout/Using_multicol_layouts
/en-US/docs/Web/CSS/CSS_Background_and_Borders /en-US/docs/Web/CSS/CSS_backgrounds_and_borders
/en-US/docs/Web/CSS/CSS_Background_and_Borders/Border-image_generator /en-US/docs/Web/CSS/CSS_backgrounds_and_borders/Border-image_generator
Expand Down Expand Up @@ -11479,6 +11480,7 @@
/en-US/docs/Web/CSS/CSS_Variables /en-US/docs/Web/CSS/CSS_cascading_variables
/en-US/docs/Web/CSS/CSS_Viewport /en-US/docs/Web/CSS
/en-US/docs/Web/CSS/CSS_charsets /en-US/docs/Web/CSS/CSS_syntax
/en-US/docs/Web/CSS/CSS_container_queries /en-US/docs/Web/CSS/CSS_containment/Container_queries
/en-US/docs/Web/CSS/CSS_descriptor_definition /en-US/docs/Web/CSS
/en-US/docs/Web/CSS/CSS_flex-wrap /en-US/docs/Web/CSS/flex-wrap
/en-US/docs/Web/CSS/CSS_flexible_box_layout/Backwards_compatibility_of_flexbox /en-US/docs/Glossary/Flexbox
Expand Down Expand Up @@ -11552,7 +11554,6 @@
/en-US/docs/Web/CSS/calc() /en-US/docs/Web/CSS/calc
/en-US/docs/Web/CSS/clamp() /en-US/docs/Web/CSS/clamp
/en-US/docs/Web/CSS/color-adjust /en-US/docs/Web/CSS/print-color-adjust
/en-US/docs/Web/CSS/color-interpolation /en-US/docs/Web/SVG/Attribute/color-interpolation
/en-US/docs/Web/CSS/color-interpolation-filters /en-US/docs/Web/SVG/Attribute/color-interpolation-filters
/en-US/docs/Web/CSS/color_value/color() /en-US/docs/Web/CSS/color_value/color
/en-US/docs/Web/CSS/color_value/color-contrast() /en-US/docs/Web/CSS/color_value/color-contrast
Expand Down Expand Up @@ -11676,7 +11677,7 @@
/en-US/docs/Web/CSS/repeating-linear-gradient() /en-US/docs/Web/CSS/gradient/repeating-linear-gradient
/en-US/docs/Web/CSS/repeating-radial-gradient /en-US/docs/Web/CSS/gradient/repeating-radial-gradient
/en-US/docs/Web/CSS/repeating-radial-gradient() /en-US/docs/Web/CSS/gradient/repeating-radial-gradient
/en-US/docs/Web/CSS/rgb /en-US/docs/Web/CSS/color_value#rgb()_and_rgba()
/en-US/docs/Web/CSS/rgb /en-US/docs/Web/CSS/color_value/rgb
/en-US/docs/Web/CSS/scroll /en-US/docs/Web/CSS/overflow
/en-US/docs/Web/CSS/scrollbar-track-color /en-US/docs/Web/CSS/scrollbar-color
/en-US/docs/Web/CSS/shape-box /en-US/docs/Web/CSS/shape-outside
Expand Down Expand Up @@ -12032,6 +12033,7 @@
/en-US/docs/Web/Guide/Audio_and_video_delivery/cross_browser_video_player /en-US/docs/Web/Media/Audio_and_video_delivery/cross_browser_video_player
/en-US/docs/Web/Guide/Audio_and_video_manipulation /en-US/docs/Web/Media/Audio_and_video_manipulation
/en-US/docs/Web/Guide/CSS /en-US/docs/Learn/CSS
/en-US/docs/Web/Guide/CSS/Block_formatting_context /en-US/docs/Web/CSS/CSS_display/Block_formatting_context
/en-US/docs/Web/Guide/CSS/CSS_Image_Sprites /en-US/docs/Web/CSS/CSS_images/Implementing_image_sprites_in_CSS
/en-US/docs/Web/Guide/CSS/Consistent_list_indentation /en-US/docs/Web/CSS/CSS_lists/Consistent_list_indentation
/en-US/docs/Web/Guide/CSS/Counters /en-US/docs/Web/CSS/CSS_counter_styles/Using_CSS_counters
Expand Down Expand Up @@ -12777,6 +12779,7 @@
/en-US/docs/Web/Performance/Time_to_interactive /en-US/docs/Glossary/Time_to_interactive
/en-US/docs/Web/Performance/business_case_for_performance /en-US/docs/Learn/Performance/business_case_for_performance
/en-US/docs/Web/Performance/learn /en-US/docs/Web/Performance/How_browsers_work
/en-US/docs/Web/Privacy/Partitioned_cookies /en-US/docs/Web/Privacy/Privacy_sandbox/Partitioned_cookies
/en-US/docs/Web/Privacy/Tracking_Protection /en-US/docs/Web/Privacy/Firefox_tracking_protection
/en-US/docs/Web/Progressive_web_apps/Add_to_home_screen /en-US/docs/Web/Progressive_web_apps/Guides/Making_PWAs_installable
/en-US/docs/Web/Progressive_web_apps/Advantages /en-US/docs/Web/Progressive_web_apps
Expand Down
84 changes: 37 additions & 47 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -43042,16 +43042,6 @@
"chrisdavidmills"
]
},
"Web/API/IDBLocaleAwareKeyRange": {
"modified": "2020-10-15T21:38:45.838Z",
"contributors": [
"teoli",
"fscholz",
"Sebastianz",
"Seta00",
"chrisdavidmills"
]
},
"Web/API/IDBObjectStore": {
"modified": "2020-10-15T21:10:03.883Z",
"contributors": [
Expand Down Expand Up @@ -77137,6 +77127,43 @@
"teoli"
]
},
"Web/CSS/CSS_display/Block_formatting_context": {
"modified": "2020-11-02T20:53:20.927Z",
"contributors": [
"spollard",
"pacexy",
"wbamberg",
"Mookiepiece",
"SelenIT",
"TrevorKarjanis",
"mfuji09",
"Konrud",
"estelle",
"wavesheep",
"jennyevans",
"MelvinIdema",
"chrisdavidmills",
"Ende93",
"xiaohanyu",
"YvonneZhang",
"pythonista27",
"S-Dey",
"mfluehr",
"yisibl",
"alberts+",
"rainyLeo",
"PageYe",
"HashemQolami",
"Jeremie",
"teoli",
"kscarfone",
"tregagnon",
"Sheppy",
"cbiesinger",
"Kohei",
"DBaron"
]
},
"Web/CSS/CSS_filter_effects": {
"modified": "2020-12-02T11:05:43.361Z",
"contributors": ["peterbe", "wbamberg", "fscholz", "mfluehr"]
Expand Down Expand Up @@ -91940,43 +91967,6 @@
"ethertank"
]
},
"Web/Guide/CSS/Block_formatting_context": {
"modified": "2020-11-02T20:53:20.927Z",
"contributors": [
"spollard",
"pacexy",
"wbamberg",
"Mookiepiece",
"SelenIT",
"TrevorKarjanis",
"mfuji09",
"Konrud",
"estelle",
"wavesheep",
"jennyevans",
"MelvinIdema",
"chrisdavidmills",
"Ende93",
"xiaohanyu",
"YvonneZhang",
"pythonista27",
"S-Dey",
"mfluehr",
"yisibl",
"alberts+",
"rainyLeo",
"PageYe",
"HashemQolami",
"Jeremie",
"teoli",
"kscarfone",
"tregagnon",
"Sheppy",
"cbiesinger",
"Kohei",
"DBaron"
]
},
"Web/Guide/CSS/Getting_started/Challenge_solutions": {
"modified": "2019-08-29T20:48:33.765Z",
"contributors": [
Expand Down
2 changes: 0 additions & 2 deletions files/en-us/games/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ For a list of web game examples, see our list of [Tutorials](/en-US/docs/Games/T
- : Weekly newsletter about HTML game development, sent every Friday. Contains the latest articles, tutorials, tools, and resources.
- [HTML5 Game Engine](https://html5gameengine.com/)
- : List of the most popular HTML game frameworks along with their rating, features and samples.
- [JSBreakouts](https://jsbreakouts.org/)
- : Compare JavaScript Breakout clones in different frameworks to help you choose the right one for you.
- [Tuts+ Game Development](https://gamedevelopment.tutsplus.com/)
- : Tutorials and articles about game development in general.
- [HTML5 Gamedev Starter](https://html5devstarter.enclavegames.com/)
Expand Down
Loading

0 comments on commit ed19009

Please sign in to comment.