Skip to content

Commit 602e6cf

Browse files
committed
add autosummary and no_scrollbars to conf
1 parent 2dba949 commit 602e6cf

File tree

2 files changed

+16
-0
lines changed

2 files changed

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

docs/sphinx/source/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def __getattr__(cls, name):
126126
# If true, keep warnings as "system message" paragraphs in the built documents.
127127
#keep_warnings = False
128128

129+
autosummary_generate = True
129130

130131
# -- Options for HTML output ----------------------------------------------
131132

@@ -219,6 +220,10 @@ def __getattr__(cls, name):
219220
# Output file base name for HTML help builder.
220221
htmlhelp_basename = 'PVLIB_Pythondoc'
221222

223+
# A workaround for the responsive tables always having annoying scrollbars.
224+
def setup(app):
225+
app.add_stylesheet("no_scrollbars.css")
226+
222227

223228
# -- Options for LaTeX output ---------------------------------------------
224229

0 commit comments

Comments
 (0)