diff --git a/docs/source/_static/css/theme_overrides.css b/docs/source/_static/css/theme_overrides.css new file mode 100644 index 00000000..7e39e343 --- /dev/null +++ b/docs/source/_static/css/theme_overrides.css @@ -0,0 +1,6 @@ +.wy-table-responsive > table > tbody > tr > td { + white-space: unset; +} +.wy-table-responsive > table > tbody > tr > td:first-child { + vertical-align: top; +} diff --git a/docs/source/conf.py b/docs/source/conf.py index 99101df1..5577ef65 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -59,3 +59,12 @@ if not on_rtd: # only import and set the theme if we’re building docs locally html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] except ImportError: pass + +if on_rtd or html_theme == 'sphinx_rtd_theme': + html_context = { + 'css_files': [ + 'https://media.readthedocs.org/css/sphinx_rtd_theme.css', + 'https://media.readthedocs.org/css/readthedocs-doc-embed.css', + '_static/css/theme_overrides.css', + ], + }