From 690f9cf5e1872b4857ebba11debed33c022487ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 16 Jul 2024 21:15:42 -0500 Subject: [PATCH] =?utf8?q?=F0=9F=94=A8=20Update=20docs=20Termynal=20script?= =?utf8?q?s=20to=20not=20include=20line=20nums=20for=20local=20dev=20(#101?= =?utf8?q?8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- docs/css/custom.css | 4 ++++ docs/js/custom.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/css/custom.css b/docs/css/custom.css index c479ad08..65265a53 100644 --- a/docs/css/custom.css +++ b/docs/css/custom.css @@ -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 diff --git a/docs/js/custom.js b/docs/js/custom.js index 58f321a0..0dda9fdd 100644 --- a/docs/js/custom.js +++ b/docs/js/custom.js @@ -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"); -- 2.47.2