-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge HTML for PDF outputs #640
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
And add refinements to naming, etc.
Based on Gitpod support recommendations and docs
Improve gitpod setup
Try more accurate gems path
Update merged-HTML branch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This enables (by default) merging all of a book's HTML files into one for PDF output. This is an important step for various reasons:
This is a significant restructuring of our HTML, though, because we can no longer use the
<body>
element to store chapter-specific attributes. These are now moved to the.wrapper
.Also, it's important to never use IDs in CSS or Javascript that acts on the PDF after merging, because the merging process renames all IDs (to avoid duplicates in different chapters). It also renames all internal links accordingly.
Merging can be avoiding on output by adding
--merged false
to the output command, e.g.npm run eb -- output -f screen-pdf --merged false
.