[Intel-gfx] [maintainer-tools PATCH v2 2/4] doc: provide scrollbars for overflowing wavedrom timeline content

Jani Nikula jani.nikula at intel.com
Thu Aug 10 09:39:47 UTC 2017


Wrap wavedrom timelines in <div style="overflow-x:auto"> (idea copied
from the wavedrom sphinx extension) to provide scrollbars for
overflowing content. This is useful even with rst2html.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 drm-intel-timeline.rst | 2 ++
 drm-misc-timeline.rst  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/drm-intel-timeline.rst b/drm-intel-timeline.rst
index fe69fd374cf6..a0327d360ceb 100644
--- a/drm-intel-timeline.rst
+++ b/drm-intel-timeline.rst
@@ -8,6 +8,7 @@
 	}
 	window.onload = init;
 	</script>
+	<div style="overflow-x:auto">
 	<script type="WaveDrom">
 
 .. raw:: html
@@ -16,3 +17,4 @@
 .. raw:: html
 
 	</script>
+	</div>
diff --git a/drm-misc-timeline.rst b/drm-misc-timeline.rst
index 76eb780ebd0a..bd143aa8256f 100644
--- a/drm-misc-timeline.rst
+++ b/drm-misc-timeline.rst
@@ -8,6 +8,7 @@
 	}
 	window.onload = init;
 	</script>
+	<div style="overflow-x:auto">
 	<script type="WaveDrom">
 
 .. raw:: html
@@ -16,3 +17,4 @@
 .. raw:: html
 
 	</script>
+	</div>
-- 
2.11.0



More information about the Intel-gfx mailing list