Skip to content

Commit 51c7bb7

Browse files
make webpage body larger, auto textwrap for tables
1 parent 7fc14c4 commit 51c7bb7

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

_static/css/custom.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* modified from https://github.com/readthedocs/sphinx_rtd_theme/issues/295#issuecomment-560895037 */
2+
3+
.wy-nav-content {
4+
max-width: 1200px !important;
5+
}
6+
7+
/* and fix wrap bug per https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html */
8+
.wy-table-responsive table td {
9+
/* !important prevents the common CSS stylesheets from overriding
10+
this as on RTD they are loaded after this stylesheet */
11+
white-space: normal !important;
12+
}
13+
14+
.wy-table-responsive {
15+
overflow: visible !important;
16+
}

conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
# Theme options are theme-specific and customize the look and feel of a theme
129129
# further. For a list of options available for each theme, see the
130130
# documentation.
131-
#html_theme_options = {}
131+
# html_theme_options = {}
132132

133133
# Add any paths that contain custom themes here, relative to this directory.
134134
#html_theme_path = []
@@ -154,6 +154,12 @@
154154
# so a file named "default.css" will overwrite the builtin "default.css".
155155
html_static_path = ['_static']
156156

157+
# These paths are either relative to html_static_path
158+
# or fully qualified paths (eg. https://...)
159+
html_css_files = [
160+
'css/custom.css',
161+
]
162+
157163
# Add any extra paths that contain custom files (such as robots.txt or
158164
# .htaccess) here, relative to this directory. These files are copied
159165
# directly to the root of the documentation.

0 commit comments

Comments
 (0)