Skip to content

Commit 1d4c94c

Browse files
committed
Wrap table cells for a better responsive table experience + fix printed tables
1 parent 3100436 commit 1d4c94c

File tree

2 files changed

+52
-39
lines changed

2 files changed

+52
-39
lines changed

docs/make.bat

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
@ECHO OFF
2-
3-
pushd %~dp0
4-
5-
REM Command file for Sphinx documentation
6-
7-
if "%SPHINXBUILD%" == "" (
8-
set SPHINXBUILD=python -msphinx
9-
)
10-
set SPHINXOPTS=
11-
set SPHINXBUILD=sphinx-build
12-
set SOURCEDIR=.
13-
set BUILDDIR=build
14-
set SPHINXPROJ=ReadtheDocsSphinxTheme
15-
16-
if "%1" == "" goto help
17-
18-
%SPHINXBUILD% >NUL 2>NUL
19-
if errorlevel 9009 (
20-
echo.
21-
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
22-
echo.then set the SPHINXBUILD environment variable to point to the full
23-
echo.path of the 'sphinx-build' executable. Alternatively you may add the
24-
echo.Sphinx directory to PATH.
25-
echo.
26-
echo.If you don't have Sphinx installed, grab it from
27-
echo.http://sphinx-doc.org/
28-
exit /b 1
29-
)
30-
31-
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
32-
goto end
33-
34-
:help
35-
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
36-
37-
:end
38-
popd
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=python -msphinx
9+
)
10+
set SPHINXOPTS=
11+
set SPHINXBUILD=sphinx-build
12+
set SOURCEDIR=.
13+
set BUILDDIR=build
14+
set SPHINXPROJ=ReadtheDocsSphinxTheme
15+
16+
if "%1" == "" goto help
17+
18+
%SPHINXBUILD% >NUL 2>NUL
19+
if errorlevel 9009 (
20+
echo.
21+
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
22+
echo.then set the SPHINXBUILD environment variable to point to the full
23+
echo.path of the 'sphinx-build' executable. Alternatively you may add the
24+
echo.Sphinx directory to PATH.
25+
echo.
26+
echo.If you don't have Sphinx installed, grab it from
27+
echo.http://sphinx-doc.org/
28+
exit /b 1
29+
)
30+
31+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
32+
goto end
33+
34+
:help
35+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
36+
37+
:end
38+
popd

sass/_theme_layout.sass

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ html
325325
z-index: $z-index-modal - 1
326326
&.on
327327
display: block
328+
329+
328330
footer
329331
color: $footer-color
330332
p
@@ -394,7 +396,11 @@ footer
394396
height: 100%
395397
overflow: hidden
396398

397-
@media screen and (min-width: $nav-media-query)
399+
+media($desktop)
400+
.wy-table-responsive table td
401+
white-space: normal
402+
403+
+media($desktop-wider)
398404
.wy-nav-content-wrap
399405
background: rgba(0,0,0,.05)
400406
.wy-nav-content
@@ -406,3 +412,10 @@ footer
406412
display: none
407413
.wy-nav-content-wrap
408414
margin-left: 0
415+
416+
.wy-table-responsive
417+
overflow: visible
418+
.wy-table-responsive table td,
419+
.wy-table-responsive table th
420+
white-space: normal
421+

0 commit comments

Comments
 (0)