]> granicus.if.org Git - esp-idf/commitdiff
ReadTheDocs theme has an annoying bug of text not being wrapped inside table cells...
authorkrzychb <krzychb@gazeta.pl>
Mon, 9 Apr 2018 03:47:36 +0000 (05:47 +0200)
committerkrzychb <krzychb@gazeta.pl>
Mon, 9 Apr 2018 03:47:36 +0000 (05:47 +0200)
docs/_static/theme_overrides.css [new file with mode: 0644]
docs/conf_common.py

diff --git a/docs/_static/theme_overrides.css b/docs/_static/theme_overrides.css
new file mode 100644 (file)
index 0000000..63ee6cc
--- /dev/null
@@ -0,0 +1,13 @@
+/* override table width restrictions */
+@media screen and (min-width: 767px) {
+
+   .wy-table-responsive table td {
+      /* !important prevents the common CSS stylesheets from overriding
+         this as on RTD they are loaded after this stylesheet */
+      white-space: normal !important;
+   }
+
+   .wy-table-responsive {
+      overflow: visible !important;
+   }
+}
index 1654a1ea82e26dafda4ead99ab62e7b057cf1b5d..e5dd9df6e060ae240e08d0ce88075383f82474e8 100644 (file)
@@ -185,7 +185,7 @@ html_theme = 'default'
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-#html_static_path = ['_static']
+html_static_path = ['../_static']
 
 # Add any extra paths that contain custom files (such as robots.txt or
 # .htaccess) here, relative to this directory. These files are copied
@@ -327,3 +327,8 @@ if not on_rtd:  # only import and set the theme if we're building docs locally
     html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
 
 # otherwise, readthedocs.org uses their theme by default, so no need to specify it
+
+# Override RTD CSS theme to introduce the theme corrections
+# https://github.com/rtfd/sphinx_rtd_theme/pull/432
+def setup(app):
+    app.add_stylesheet('theme_overrides.css')