Added static CSS to Sphinx in order to fix bug with RTD theme table wrapping

This commit is contained in:
wpank
2018-06-27 12:01:48 -07:00
parent 4a842ecc82
commit 3cc780de33
2 changed files with 23 additions and 1 deletions
+10 -1
View File
@@ -141,7 +141,16 @@ 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 = []
html_static_path = ['_static']
# A dictionary of values to pass into the template engines context for
# all pages. Single values can also be put in
# this dictionary using the -A command-line option of sphinx-build.
html_context = {
'css_files': [
'_static/theme_overrides.css', # override wide tables in sphinx_rtd_theme
],
}
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied