]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
🔨 Update docs Termynal scripts to not include line nums for local dev (#1018)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 17 Jul 2024 02:15:42 +0000 (21:15 -0500)
committerGitHub <noreply@github.com>
Wed, 17 Jul 2024 02:15:42 +0000 (02:15 +0000)
docs/css/custom.css
docs/js/custom.js

index c479ad08f9b133c322d7993a5508d7b860d20c7d..65265a538991d6976a48fd127dc56c9aa534579e 100644 (file)
@@ -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
index 58f321a05e7a48c8e47db06b2bb261eebee49ca7..0dda9fdd5459fe0e5436ac36d240ed2342fb16b7 100644 (file)
@@ -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");