Skip to content

Commit c25ea39

Browse files
committed
fix: use a better padding for 'Important doc helpers'
1 parent 4240871 commit c25ea39

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs/usecase/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ In this first paragraph, I will show you a `table`.
2929
```
3030

3131
?> Super
32+
33+
!> **Time** is money, my friend!

src/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function renderPdf({ mainMdFilename, pathToStatic, pathToPublic, docsifyRe
5555
footerTemplate: '<p style="margin: auto;text-align: center;font-size: 8px;"><span class="pageNumber"></span>&nbsp;/&nbsp;<span class="totalPages"></span></p>',
5656
displayHeaderFooter: true,
5757
path: path.resolve(pathToPublic),
58-
margin: { left: '1cm', right: '1cm', top: '1cm', bottom: 70 },
58+
margin: { left: 29.795, right: 29.795, top: 29.795, bottom: 70 }, // 1px - 8px (padding)
5959
timeout: 560000, // 5 minutes
6060
}
6161

src/run-sandbox-script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = async (page, { mainMdFilenameWithoutExt, pathToStatic }) => {
2626
left: 0;
2727
`
2828

29-
document.querySelector('.markdown-section').style = 'max-width: 100%; padding: 0;'
29+
document.querySelector('.markdown-section').style = 'max-width: 100%; padding: 8px;'
3030

3131
document.querySelectorAll('pre').forEach((v) => {
3232
v.style['white-space'] = 'pre-wrap'
@@ -115,7 +115,7 @@ module.exports = async (page, { mainMdFilenameWithoutExt, pathToStatic }) => {
115115
if (link.href.startsWith('http://localhost') && !link.href.includes('#')) {
116116
link.removeAttribute('href')
117117
}
118-
} catch (err) {}
118+
} catch (err) { }
119119
})
120120
}
121121

0 commit comments

Comments
 (0)