Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MUYSC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jorge Alfredo Jaimes Teherán
MUYSC
Commits
947b6c04
Commit
947b6c04
authored
4 years ago
by
mmcky
Browse files
Options
Downloads
Patches
Plain Diff
[TEMP] Apply less stringent waitUnitl condition for pyppeteer rendering
parent
e48f20ce
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jupyter_book/pdf.py
+1
-1
1 addition, 1 deletion
jupyter_book/pdf.py
with
1 addition
and
1 deletion
jupyter_book/pdf.py
+
1
−
1
View file @
947b6c04
...
...
@@ -61,7 +61,7 @@ async def _html_to_pdf(html_file, pdf_file):
html_file
=
Path
(
html_file
).
resolve
()
# Waiting for networkidle0 seems to let mathjax render
await
page
.
goto
(
f
"
file:///
{
html_file
}
"
,
{
"
waitUntil
"
:
[
"
networkidle
0
"
]})
await
page
.
goto
(
f
"
file:///
{
html_file
}
"
,
{
"
waitUntil
"
:
[
"
networkidle
2
"
]})
# Give it *some* margins to make it look a little prettier
# I just made these up
page_margins
=
{
"
left
"
:
"
0in
"
,
"
right
"
:
"
0in
"
,
"
top
"
:
"
.5in
"
,
"
bottom
"
:
"
.5in
"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment