We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f73ee51 commit b8e9d8fCopy full SHA for b8e9d8f
1 file changed
hooks/99_generatePdf.js
@@ -16,9 +16,10 @@ module.exports = {
16
try {
17
const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
18
const page = await browser.newPage();
19
-
+ const fullPath = path.resolve(targetDir, 'index.html');
20
+ const fileUrl = `file:///${fullPath.replace(/\\/g, '/')}`;
21
// Go to prepared page with documentation
- await page.goto(`file://${path.join(targetDir, 'index.html')}`, { waitUntil: 'networkidle0' });
22
+ await page.goto(fileUrl, { waitUntil: 'networkidle0' });
23
24
// Hide burger-menu in pdf
25
await page.evaluate(() => { document.querySelector('.burger-menu').style.display = 'none'; });
0 commit comments