From: Sebastián Ramírez Date: Wed, 17 Jul 2024 02:12:29 +0000 (-0500) Subject: 🔨 Update docs Termynal scripts to not include line nums for local dev (#11854) X-Git-Tag: 0.112.0~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7bbddf012c2f5dc3781d9331ee9fec9f718efa94;p=thirdparty%2Ffastapi%2Ffastapi.git 🔨 Update docs Termynal scripts to not include line nums for local dev (#11854) --- diff --git a/docs/en/docs/css/custom.css b/docs/en/docs/css/custom.css index 386aa9d7e7..b192f6123a 100644 --- a/docs/en/docs/css/custom.css +++ b/docs/en/docs/css/custom.css @@ -13,6 +13,10 @@ white-space: pre-wrap; } +.termy .linenos { + display: none; +} + a.external-link { /* For right to left languages */ direction: ltr; diff --git a/docs/en/docs/js/custom.js b/docs/en/docs/js/custom.js index 8e3be4c130..0008db49e3 100644 --- a/docs/en/docs/js/custom.js +++ b/docs/en/docs/js/custom.js @@ -35,7 +35,7 @@ function setupTermynal() { function createTermynals() { document - .querySelectorAll(`.${termynalActivateClass} .highlight`) + .querySelectorAll(`.${termynalActivateClass} .highlight code`) .forEach(node => { const text = node.textContent; const lines = text.split("\n");