Skip to content

Commit

Permalink
add page margin content (header image, page numbers)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Mar 9, 2024
1 parent 6602a6a commit 5957e64
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
56 changes: 56 additions & 0 deletions css/print.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,9 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))}
printStyle.textContent = `@media print {\n${printCssContents}\n}`;
this.doc.head.appendChild(printStyle);
}
const currentYearStyle = this.doc.createElement('style');
currentYearStyle.textContent = `:root { --current-year: ${new Date().getFullYear()}; }`;
this.doc.head.appendChild(currentYearStyle);
this.addStyle(
this.doc.head,
`https://cdnjs.cloudflare.com/ajax/libs/highlight.js/${
Expand Down

0 comments on commit 5957e64

Please sign in to comment.