Fixed wrapping of cell content in readthedocs style
The readthedocs style for sphinx has an issue where it does not auto wrap text in table cells. This results in very long cells with a vertical scrollbar. This adds a css style sheet to fix this wrapping issue. Signed-off-by: Claudius Heine <ch@denx.de>
This commit is contained in:
parent
e02bee0eec
commit
32b9b4bb76
13
docs/_static/theme_overrides.css
vendored
Normal file
13
docs/_static/theme_overrides.css
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/* override table width restrictions */
|
||||||
|
@media screen and (min-width: 767px) {
|
||||||
|
|
||||||
|
.wy-table-responsive table td {
|
||||||
|
/* !important prevents the common CSS stylesheets from overriding
|
||||||
|
this as on RTD they are loaded after this stylesheet */
|
||||||
|
white-space: normal !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wy-table-responsive {
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
}
|
@ -251,6 +251,12 @@ html_static_path = ['_static']
|
|||||||
# Output file base name for HTML help builder.
|
# Output file base name for HTML help builder.
|
||||||
htmlhelp_basename = 'kasdoc'
|
htmlhelp_basename = 'kasdoc'
|
||||||
|
|
||||||
|
html_context = {
|
||||||
|
'extra_css_files': [
|
||||||
|
'_static/theme_overrides.css', # override wide tables in RTD theme
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
# -- Options for LaTeX output ---------------------------------------------
|
# -- Options for LaTeX output ---------------------------------------------
|
||||||
|
|
||||||
latex_elements = {
|
latex_elements = {
|
||||||
|
Loading…
Reference in New Issue
Block a user