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:
Claudius Heine 2017-06-28 14:48:47 +02:00 committed by Daniel Wagner
parent e02bee0eec
commit 32b9b4bb76
2 changed files with 19 additions and 0 deletions

13
docs/_static/theme_overrides.css vendored Normal file
View 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;
}
}

View File

@ -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 = {