Skip to content

Commit

Permalink
Alternate approach
Browse files Browse the repository at this point in the history
  • Loading branch information
datadavev committed Apr 29, 2017
1 parent 20333c2 commit e2f1f39
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 8 additions & 3 deletions source/_static/customize.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
/**
Make max width wider on wide displays
*/
@import url("theme.css")

.wy-nav-content {
max-width: 90% !important;
.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;
}
8 changes: 7 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_style = 'css/customize.css'

# See the setup method at end of conf.py
#html_style = 'css/customize.css'

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
Expand Down Expand Up @@ -296,3 +298,7 @@

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'API':('https://releases.dataone.org/online/api-documentation-v2.0', None)}


def setup(app):
app.add_stylesheet('css/customize.css')

0 comments on commit e2f1f39

Please sign in to comment.