summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/_static/theme_overrides.css19
-rw-r--r--Documentation/conf.py8
2 files changed, 26 insertions, 1 deletions
diff --git a/Documentation/_static/theme_overrides.css b/Documentation/_static/theme_overrides.css
new file mode 100644
index 000000000000..e73518b6d5d8
--- /dev/null
+++ b/Documentation/_static/theme_overrides.css
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2018 Patrick Rudolph <siro@das-labor.org>
+ *
+ * licensed under CC-by 4.0
+ */
+
+/* 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;
+ }
+}
+
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 85e0438579e1..f108d77a0f73 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -58,7 +58,13 @@ html_theme = 'sphinx_rtd_theme'
# 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']
+
+html_context = {
+ 'css_files': [
+ '_static/theme_overrides.css', # override wide tables in RTD theme
+ ],
+}
# Output file base name for HTML help builder.
htmlhelp_basename = 'corebootdoc'