Browse Source

Merge pull request #3883 from metalivedev/fix-3879

Fixes #3879 by updating embedding of ascii.io (now asciinema.io)
Andy Rothfusz 11 years ago
parent
commit
8beca66741

+ 12 - 7
docs/sources/examples/hello_world.rst

@@ -70,10 +70,12 @@ See the example in action
 
 .. raw:: html
 
-    <div style="margin-top:10px;">
-      <iframe width="560" height="350" src="http://ascii.io/a/2603/raw" frameborder="0"></iframe>
-    </div>
-
+   <iframe width="560" height="400" frameborder="0"
+           sandbox="allow-same-origin allow-scripts" 
+   srcdoc="<body><script type=&quot;text/javascript&quot; 
+           src=&quot;https://asciinema.org/a/2603.js&quot; 
+           id=&quot;asciicast-2603&quot; async></script></body>">
+   </iframe>
 
 ----
 
@@ -163,9 +165,12 @@ See the example in action
 
 .. raw:: html
 
-    <div style="margin-top:10px;">
-      <iframe width="560" height="350" src="http://ascii.io/a/2562/raw" frameborder="0"></iframe>
-    </div>
+   <iframe width="560" height="400" frameborder="0"
+           sandbox="allow-same-origin allow-scripts" 
+   srcdoc="<body><script type=&quot;text/javascript&quot; 
+           src=&quot;https://asciinema.org/a/2562.js&quot; 
+           id=&quot;asciicast-2562&quot; async></script></body>">
+   </iframe>
 
 The next example in the series is a :ref:`python_web_app` example, or
 you could skip to any of the other examples:

+ 6 - 3
docs/sources/examples/python_web_app.rst

@@ -107,8 +107,11 @@ See the example in action
 
 .. raw:: html
 
-    <div style="margin-top:10px;">
-      <iframe width="720" height="350" src="http://ascii.io/a/2573/raw" frameborder="0"></iframe>
-    </div>
+   <iframe width="720" height="400" frameborder="0"
+           sandbox="allow-same-origin allow-scripts" 
+   srcdoc="<body><script type=&quot;text/javascript&quot; 
+           src=&quot;https://asciinema.org/a/2573.js&quot; 
+           id=&quot;asciicast-2573&quot; async></script></body>">
+   </iframe>
 
 Continue to :ref:`running_ssh_service`.

+ 6 - 3
docs/sources/examples/running_ssh_service.rst

@@ -25,9 +25,12 @@ smooth, but it gives you a good idea.
 
 .. raw:: html
 
-    <div style="margin-top:10px;">
-      <iframe width="800" height="400" src="http://ascii.io/a/2637/raw" frameborder="0"></iframe>
-    </div>
+   <iframe width="815" height="450" frameborder="0"
+           sandbox="allow-same-origin allow-scripts" 
+   srcdoc="<body><script type=&quot;text/javascript&quot; 
+           src=&quot;https://asciinema.org/a/2637.js&quot; 
+           id=&quot;asciicast-2637&quot; async></script></body>">
+   </iframe>
         
 You can also get this sshd container by using: