Skip to content

Commit 461e19a

Browse files
committed
Merge pull request #75 from ddemidov/master
Fix doc generation
2 parents d2c61ab + d1573bb commit 461e19a

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

docs/_static/theme_overrides.css

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

docs/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
2121
from git_version import git_version
2222

23+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
24+
2325
# If extensions (or modules to document with autodoc) are in another directory,
2426
# add these directories to sys.path here. If the directory is relative to the
2527
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -115,7 +117,12 @@
115117

116118
# The theme to use for HTML and HTML Help pages. See the documentation for
117119
# a list of builtin themes.
118-
#html_theme = 'sphinx_rtd_theme'
120+
if not on_rtd:
121+
html_theme = 'sphinx_rtd_theme'
122+
123+
def setup(app):
124+
# overrides for wide tables in RTD theme
125+
app.add_stylesheet('theme_overrides.css')
119126

120127
# Theme options are theme-specific and customize the look and feel of a theme
121128
# further. For a list of options available for each theme, see the

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Module interface
99
----------------
1010

11-
.. automodule:: ev3dev
11+
.. automodule:: ev3dev.ev3
1212

1313
.. autosummary::
1414
:nosignatures:

0 commit comments

Comments
 (0)