Make it possible to have multiline table cells in docs by adding som override CSS

This commit is contained in:
Jonatan Heyman 2020-04-13 19:20:40 +02:00
parent 59b0373a64
commit ada1ffac6d
2 changed files with 17 additions and 0 deletions

9
docs/_static/theme-overrides.css vendored Normal file
View File

@ -0,0 +1,9 @@
/* Make it possible to have multiline table cells by removing white-space:nowrap */
.wy-table-responsive table td, .wy-table-responsive table th {
white-space: normal;
}
.wy-table-responsive {
margin-bottom: 24px;
max-width: 100%;
overflow: visible;
}

View File

@ -101,6 +101,14 @@ if not on_rtd: # only import and set the theme if we're building docs locally
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# Custom CSS overrides
html_static_path = ["_static"]
html_context = {
"css_files": ["_static/theme-overrides.css"],
}
# HTML theme
#html_theme = "haiku"