diff --git a/docs/_static/theme_overrides.css b/docs/_static/theme_overrides.css new file mode 100644 index 00000000..f86e823a --- /dev/null +++ b/docs/_static/theme_overrides.css @@ -0,0 +1,10 @@ +/* override table width restrictions */ +.wy-table-responsive table td, .wy-table-responsive table th { + /* !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; +} \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 5c5ae80b..53f8a4c7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -139,6 +139,11 @@ if not on_rtd: # only import and set the theme if we're building docs locally # 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_context = { + 'css_files': [ + '_static/theme_overrides.css', # overrides for wide tables in RTD theme + ], +} # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format.