Skip to content

Commit

Permalink
Merge branch 'page-margin-content' into toc-page-numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra authored Mar 12, 2024
2 parents 90bfaa1 + 9f7d351 commit 136f8c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
12 changes: 6 additions & 6 deletions css/print.css

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

7 changes: 6 additions & 1 deletion js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,9 @@ let referencePane = {
this.$tableContainer.appendChild(this.$table);
this.$pane.appendChild(this.$tableContainer);

menu.$specContainer.appendChild(this.$container);
if (menu != null) {
menu.$specContainer.appendChild(this.$container);
}
},

activate() {
Expand Down Expand Up @@ -1106,6 +1108,9 @@ function doShortcut(e) {
}

function init() {
if (document.getElementById('menu') == null) {
return;
}
menu = new Menu();
let $container = document.getElementById('spec-container');
$container.addEventListener(
Expand Down
2 changes: 1 addition & 1 deletion src/Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))}
this.doc.head.appendChild(printStyle);
}
const currentYearStyle = this.doc.createElement('style');
currentYearStyle.textContent = `:root { --current-year: ${new Date().getFullYear()}; }`;
currentYearStyle.textContent = `:root { --current-year: ${this.opts.date!.getFullYear()}; }`;
this.doc.head.appendChild(currentYearStyle);
this.addStyle(
this.doc.head,
Expand Down

0 comments on commit 136f8c2

Please sign in to comment.