aboutsummaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2017-11-29 22:08:39 +0100
committerKristian Evers <kristianevers@gmail.com>2017-11-29 22:08:46 +0100
commit597a208400377ca6285fbd204c44817e21f31907 (patch)
treece8aa84f2371bc02ac87abc336efbdffaadc350a /docs/source
parent7b0e97df22d32608355d1f235ee22ffedcc9f06e (diff)
downloadPROJ-597a208400377ca6285fbd204c44817e21f31907.tar.gz
PROJ-597a208400377ca6285fbd204c44817e21f31907.zip
CSS override of the RTD theme so that lines are wrapped in tables.
[skip ci]
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/_static/theme_overrides.css13
-rw-r--r--docs/source/conf.py8
2 files changed, 20 insertions, 1 deletions
diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css
new file mode 100644
index 00000000..63ee6cc7
--- /dev/null
+++ b/docs/source/_static/theme_overrides.css
@@ -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;
+ }
+}
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 62316eef..12ee0a57 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -140,7 +140,13 @@ html_theme_options = {}
# 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
+ ],
+}
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied