Skip to content

Commit 3eadbbf

Browse files
committed
Get rid of scroll bars in docs
This makes things far easier to read. Workaround stolen from: readthedocs/sphinx_rtd_theme#117
1 parent 7135ba3 commit 3eadbbf

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/_static/no_scrollbars.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* override table width restrictions */
2+
.wy-table-responsive table td, .wy-table-responsive table th {
3+
/* !important prevents the common CSS stylesheets from
4+
overriding this as on RTD they are loaded after this stylesheet */
5+
white-space: normal !important;
6+
}
7+
8+
.wy-table-responsive {
9+
overflow: visible !important;
10+
}

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,3 +281,7 @@ def __getattr__(cls, name):
281281

282282

283283
graphviz_dot_args = ['-Lg']
284+
285+
# A workaround for the responsive tables always having annoying scrollbars.
286+
def setup(app):
287+
app.add_stylesheet("no_scrollbars.css")

0 commit comments

Comments
 (0)