mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: link new puppeteer versions (#8637)
This commit is contained in:
parent
ec8c750383
commit
f82c03682a
@ -1,5 +1,7 @@
|
||||
---
|
||||
|
||||
sidebar_position: 1
|
||||
|
||||
---
|
||||
|
||||
# Puppeteer
|
||||
|
@ -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}`
|
||||
|
Loading…
Reference in New Issue
Block a user