Skip to content

Commit

Permalink
🔨 Update docs Termynal scripts to not include line nums for local dev (…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Jul 17, 2024
1 parent fca0621 commit 690f9cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
white-space: pre-wrap;
}

.termy .linenos {
display: none;
}

a.external-link::after {
/* \00A0 is a non-breaking space
to make the mark be on the same line as the link
Expand Down
2 changes: 1 addition & 1 deletion docs/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function setupTermynal() {

function createTermynals() {
document
.querySelectorAll(`.${termynalActivateClass} .highlight`)
.querySelectorAll(`.${termynalActivateClass} .highlight code`)
.forEach(node => {
const text = node.textContent;
const lines = text.split("\n");
Expand Down

0 comments on commit 690f9cf

Please sign in to comment.