File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed
Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 2020sys .path .append (os .path .join (os .path .dirname (__file__ ), '..' ))
2121from 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.
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
Original file line number Diff line number Diff line change 88Module interface
99----------------
1010
11- .. automodule :: ev3dev
11+ .. automodule :: ev3dev.ev3
1212
1313.. autosummary ::
1414 :nosignatures:
You can’t perform that action at this time.
0 commit comments