Skip to contentSkip to conversation

drm-intel: embed wavedrom engine and skin into the web page

PATCH In review Jani Nikula 1 participant 2 messages Dec 8, 2015 – Dec 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm-intel: embed wavedrom engine and skin into the web page

The wavedrom timeline will be missing from html pages served over https due to "mixed active content" blocking [1], because the wavedrom engine and skin are only available over http. Embed the engine and skin into the resulting html to avoid the problem.

The rst :url: will fetch and include the scripts at html build time.

[1] https://developer.mozilla.org/en-US/docs/Security/MixedContent

---
 drm-intel-timeline.rst | 21 +++++++++++++++++----
 drm-intel.rst          |  1 -
 2 files changed, 17 insertions(+), 5 deletions(-)
drm-intel-timeline.rst +17 -4
index 0d78046736b2..e1766a5df98b 100644
@@ -1,10 +1,23 @@
-.. This is a wrapper intended to both keep the master document clean of the raw
-.. html script stuff and to keep the wavedrom source pure json.
+.. raw:: html
+
+	<script type="text/javascript">
+	/* Embedded WaveDrom skin from http://wavedrom.com/skins/default.js */
+
+.. raw:: html
+	:url: http://wavedrom.com/skins/default.js
 
 .. raw:: html
 
-	<script src="http://wavedrom.com/skins/default.js" type="text/javascript"></script>
-	<script src="http://wavedrom.com/WaveDrom.js" type="text/javascript"></script>
+	</script>
+	<script type="text/javascript">
+	/* Embedded WaveDrom engine from http://wavedrom.com/WaveDrom.js */
+
+.. raw:: html
+	:url: http://wavedrom.com/WaveDrom.js
+
+.. raw:: html
+
+	</script>
 	<script type="WaveDrom">
 
 .. raw:: html
drm-intel.rst +0 -1
index dc1393bbec21..c6b0800e2dbc 100644
@@ -136,7 +136,6 @@ kernel release cycle. Worth noting is that we're working on two or three kernel
 releases at the same time. Big features take a long time to hit a kernel
 release. There are no fast paths.
 
-.. Note: This requires JavaScript and will access http://wavedrom.com to render.
 .. include:: drm-intel-timeline.rst
 
 For predictions on the future merge windows and releases, see
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 10 lines · Jani Nikula

The wavedrom timeline will be missing from html pages served over https due to "mixed active content" blocking [1], because the wavedrom engine and skin are only available over http. Embed the engine and skin into the resulting html to avoid the problem.

The rst :url: will fetch and include the scripts at html build time.

[1] https://developer.mozilla.org/en-US/docs/Security/MixedContent

Pushed.

Quoted 49 lines
---
 drm-intel-timeline.rst | 21 +++++++++++++++++----
 drm-intel.rst          |  1 -
 2 files changed, 17 insertions(+), 5 deletions(-)
drm-intel-timeline.rst +17 -4
index 0d78046736b2..e1766a5df98b 100644
@@ -1,10 +1,23 @@
-.. This is a wrapper intended to both keep the master document clean of the raw
-.. html script stuff and to keep the wavedrom source pure json.
+.. raw:: html
+
+	<script type="text/javascript">
+	/* Embedded WaveDrom skin from http://wavedrom.com/skins/default.js */
+
+.. raw:: html
+	:url: http://wavedrom.com/skins/default.js
 
 .. raw:: html
 
-	<script src="http://wavedrom.com/skins/default.js" type="text/javascript"></script>
-	<script src="http://wavedrom.com/WaveDrom.js" type="text/javascript"></script>
+	</script>
+	<script type="text/javascript">
+	/* Embedded WaveDrom engine from http://wavedrom.com/WaveDrom.js */
+
+.. raw:: html
+	:url: http://wavedrom.com/WaveDrom.js
+
+.. raw:: html
+
+	</script>
 	<script type="WaveDrom">
 
 .. raw:: html
drm-intel.rst +0 -1
index dc1393bbec21..c6b0800e2dbc 100644
@@ -136,7 +136,6 @@ kernel release cycle. Worth noting is that we're working on two or three kernel
 releases at the same time. Big features take a long time to hit a kernel
 release. There are no fast paths.
 
-.. Note: This requires JavaScript and will access http://wavedrom.com to render.
 .. include:: drm-intel-timeline.rst
 
 For predictions on the future merge windows and releases, see
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx