Skip to content

Commit 48a4df0

Browse files
committed
Limit max height of code blocks
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
1 parent d393e01 commit 48a4df0

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.rst-content div[class^="highlight"] pre {
2+
max-height: 300px;
3+
}

lib/spack/docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ def setup(sphinx):
308308
# so a file named "default.css" will overwrite the builtin "default.css".
309309
html_static_path = ["_static"]
310310

311+
# These paths are relative to html_static_path
312+
html_css_files = ["css/custom.css"]
313+
311314
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
312315
# using the given strftime format.
313316
html_last_updated_fmt = "%b %d, %Y"

0 commit comments

Comments
 (0)