Skip to content

Commit 690f9cf

Browse files
authored
🔨 Update docs Termynal scripts to not include line nums for local dev (#1018)
1 parent fca0621 commit 690f9cf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎docs/css/custom.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
white-space: pre-wrap;
99
}
1010

11+
.termy .linenos {
12+
display: none;
13+
}
14+
1115
a.external-link::after {
1216
/* \00A0 is a non-breaking space
1317
to make the mark be on the same line as the link

‎docs/js/custom.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function setupTermynal() {
1313

1414
function createTermynals() {
1515
document
16-
.querySelectorAll(`.${termynalActivateClass} .highlight`)
16+
.querySelectorAll(`.${termynalActivateClass} .highlight code`)
1717
.forEach(node => {
1818
const text = node.textContent;
1919
const lines = text.split("\n");

0 commit comments

Comments
 (0)