feat: add PDF generation tooling#2
Open
khubaib-ctrl wants to merge 1 commit intoalejandrobalderas:mainfrom
Open
feat: add PDF generation tooling#2khubaib-ctrl wants to merge 1 commit intoalejandrobalderas:mainfrom
khubaib-ctrl wants to merge 1 commit intoalejandrobalderas:mainfrom
Conversation
Adds a full PDF build pipeline for the book: - `scripts/build-pdf.js` — assembles all 18 chapters into a single markdown document with cover page, title page, copyright notice, table of contents, and 7 part-divider pages - `book-style.css` — print stylesheet (Inter headings, Source Serif 4 body, JetBrains Mono code, orange accent, dark code blocks) - `.md-to-pdf.config.js` — md-to-pdf config with cross-platform Chrome path detection and custom header/footer - `Makefile` — `make pdf` entry point; auto-installs md-to-pdf if missing; `make clean-pdf` to remove artifacts - `.gitignore` — excludes generated `book-combined.md` and `*.pdf` - `README.md` — documents `make pdf` usage and CHROME_PATH override Requires Node.js and Google Chrome. Override Chrome path with the CHROME_PATH environment variable if needed.
This file contains hidden or 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
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.
Adds a full PDF build pipeline for the book:
scripts/build-pdf.js— assembles all 18 chapters into a single markdown document with cover page, title page, copyright notice, table of contents, and 7 part-divider pagesbook-style.css— print stylesheet (Inter headings, Source Serif 4 body, JetBrains Mono code, orange accent, dark code blocks).md-to-pdf.config.js— md-to-pdf config with cross-platform Chrome path detection and custom header/footerMakefile—make pdfentry point; auto-installs md-to-pdf if missing;make clean-pdfto remove artifacts.gitignore— excludes generatedbook-combined.mdand*.pdfREADME.md— documentsmake pdfusage and CHROME_PATH overrideRequires Node.js and Google Chrome. Override Chrome path with the CHROME_PATH environment variable if needed.