forked from NHERI-SimCenter/pelicun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Eliminate redundant line breaks in notebook output. - Convert validation tests into examples, which can be refined later.
- Loading branch information
1 parent
befdf19
commit 16df91e
Showing
15 changed files
with
291 additions
and
1,826 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
document.addEventListener("DOMContentLoaded", function() { | ||
document.querySelectorAll('div.nboutput.docutils.container').forEach(function(div) { | ||
// Our objective is to hide all `div` elements of which all | ||
// children elements only contain whitespace. | ||
// This remedies the nbsphinx issue where an extra newline was | ||
// added to each line in the code block output. | ||
let isEmpty = Array.from(div.children).every(child => !child.textContent.trim()); | ||
|
||
if (isEmpty) { | ||
div.style.display = 'none'; | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.