mirror of https://github.com/tiangolo/fastapi.git
🔨 Update docs Termynal scripts to not include line nums for local dev (#11854)
This commit is contained in:
parent
67ed86cb7f
commit
7bbddf012c
|
|
@ -13,6 +13,10 @@
|
|||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.termy .linenos {
|
||||
display: none;
|
||||
}
|
||||
|
||||
a.external-link {
|
||||
/* For right to left languages */
|
||||
direction: ltr;
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue