chore: link new puppeteer versions (#8637)

This commit is contained in:
jrandolf 2022-07-06 17:49:47 +02:00 committed by GitHub
parent ec8c750383
commit f82c03682a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 5 deletions

View File

@ -1,5 +1,7 @@
---
sidebar_position: 1
---
# Puppeteer

View File

@ -55,11 +55,11 @@ chdir(join(__dirname, '..'));
{
const content = readFileSync('README.md', 'utf-8');
const sectionContent = `
---
sidebar_position: 1
---
`;
---
sidebar_position: 1
---
`;
writeFileSync('docs/index.md', sectionContent + content);
}
@ -78,6 +78,12 @@ sidebar_position: 1
buffer.push(
` * Chromium ${chromiumVersion} - [Puppeteer ${puppeteerVersion}](https://github.com/puppeteer/puppeteer/blob/${puppeteerVersion}/docs/api.md)`
);
} else if (semver.gte(puppeteerVersion, '15.3.0')) {
buffer.push(
` * Chromium ${chromiumVersion} - [Puppeteer ${puppeteerVersion}](https://pptr.dev/${puppeteerVersion.slice(
1
)})`
);
} else {
buffer.push(
` * Chromium ${chromiumVersion} - Puppeteer ${puppeteerVersion}`