From: Sebastián Ramírez Date: Wed, 17 Jul 2024 02:15:42 +0000 (-0500) Subject: 🔨 Update docs Termynal scripts to not include line nums for local dev (#1018) X-Git-Tag: 0.0.20~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=690f9cf5e1872b4857ebba11debed33c022487ea;p=thirdparty%2Ffastapi%2Fsqlmodel.git 🔨 Update docs Termynal scripts to not include line nums for local dev (#1018) --- 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");