Skip to content

Commit

Permalink
chore: link new puppeteer versions (#8637)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Jul 6, 2022
1 parent ec8c750 commit f82c036
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/index.md
@@ -1,5 +1,7 @@
---

sidebar_position: 1

---

# Puppeteer
Expand Down
16 changes: 11 additions & 5 deletions utils/generate_docs.ts
Expand Up @@ -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);
}

Expand All @@ -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}`
Expand Down

0 comments on commit f82c036

Please sign in to comment.