Skip to content

Commit

Permalink
Fix theme issues (locally, Splunk App, and RTD)
Browse files Browse the repository at this point in the history
  • Loading branch information
lowell80 committed Oct 4, 2023
1 parent 113c971 commit acb1de5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions docs/source/_static/theme_overrides.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
/*
Trick from http://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html
Trick from https://github.com/readthedocs/sphinx_rtd_theme/issues/117#issuecomment-153083280
*/

/* override table width restrictions */
@media screen and (min-width: 767px) {

.wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
/* !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;
}

}
10 changes: 5 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_context = {
'css_files': [
'_static/theme_overrides.css', # override wide tables in RTD theme
],
}

def setup(app):
# Reminder: Don't edit html_context directly, at that clobbers the theme's css files...
app.add_css_file("theme_overrides.css", 300)


# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down

0 comments on commit acb1de5

Please sign in to comment.