docs: update the supported browsers page (#12223)

This commit is contained in:
Alex Rudenko 2024-04-08 11:14:55 +02:00 committed by GitHub
parent 3f08654697
commit 2821970485
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 17 additions and 7 deletions

View File

@ -35,9 +35,9 @@ function getApiUrl(version) {
}
export const docsChromiumSupportTask = task({
name: 'docs:chromium-support',
name: 'docs:supported-browsers',
run: async () => {
const content = await readFile('docs/chromium-support.md', {
const content = await readFile('docs/supported-browsers.md', {
encoding: 'utf8',
});
const {versionsPerRelease} = await import('./versions.js');
@ -61,7 +61,7 @@ export const docsChromiumSupportTask = task({
}
}
await writeFile(
'docs/chromium-support.md',
'docs/supported-browsers.md',
spliceIntoSection('version', content, buffer.join('\n'))
);
},

View File

@ -1,6 +1,12 @@
# Chromium Support
# Supported browsers
The following versions of Chromium are supported, mapped to Puppeteer version. This list is automatically updated when the version of Chromium changes in a given release of Puppeteer. If an exact matching version of Puppeteer isn't listed, the supported version of Chromium is that for the immediately prior version of Puppeteer:
:::note
Puppeteer originally only worked with Chromium and downloaded Chromium builds by default. Newer versions use **[Chrome for Testing](https://github.com/GoogleChromeLabs/chrome-for-testing?tab=readme-ov-file#what-is-chrome-for-testing)**, which supports both headless and headful modes sharing the same code path in the browser. The old headless mode is now a separate program called **[chrome-headless-shell](https://developer.chrome.com/blog/chrome-headless-shell)** (use `headless: 'shell'` with Puppeteer). Puppeteer also supports nightly versions of [Firefox](https://www.mozilla.org/en-US/firefox/). This page lists which Puppeteer version works with which Chromium or Chrome for Testing version (chrome-headless-shell versions match Chrome for Testing).
:::
The following versions of the browsers are supported, mapped to Puppeteer version. This list is automatically updated when the version of the pinned browsers changes in a given release of Puppeteer. If an exact matching version of Puppeteer isn't listed, the supported version of the browser is that for the immediately prior version of Puppeteer:
<!-- version-start -->

View File

@ -83,6 +83,10 @@ const config = {
from: '/guides',
to: '/category/guides',
},
{
from: '/chromium-support',
to: '/supported-browsers',
},
],
}),
],

View File

@ -45,7 +45,7 @@ module.exports = {
],
},
'webdriver-bidi',
'chromium-support',
'supported-browsers',
'troubleshooting',
'contributing',
'faq',

View File

@ -43,7 +43,7 @@
]
},
"webdriver-bidi",
"chromium-support",
"supported-browsers",
"troubleshooting",
"contributing",
"faq"