Browse Source

🔨 Update docs Termynal scripts to not include line nums for local dev (#11854)

pull/11861/head
Sebastián Ramírez 9 months ago
committed by GitHub
parent
commit
7bbddf012c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      docs/en/docs/css/custom.css
  2. 2
      docs/en/docs/js/custom.js

4
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;

2
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");

Loading…
Cancel
Save