Wrap text in tables in docs.

This commit is contained in:
Kenneth Lyons 2020-06-06 16:22:16 -07:00
parent 1c67d3ea2f
commit 3cad91b5f1
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,14 @@
/* Customizations to the theme */
/* override table width restrictions */
/* https://github.com/readthedocs/sphinx_rtd_theme/issues/117 */
@media screen and (min-width: 768px) {
.wy-table-responsive table td, .wy-table-responsive table th {
white-space: normal !important;
}
.wy-table-responsive {
overflow: visible !important;
max-width: 100%;
}
}

View File

@ -131,7 +131,11 @@ html_theme = 'sphinx_rtd_theme'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
#html_static_path = ['_static']
html_static_path = ['_static']
# add the theme customizations
def setup(app):
app.add_stylesheet("custom.css")
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.