docs: embed the devtools video in the corresponding guide (#42161)

Allow people consume the content in a video format.

PR Close #42161
This commit is contained in:
mgechev 2021-05-18 16:29:55 -07:00 committed by Zach Arend
parent a01fe8d9b4
commit c9bc88757b
4 changed files with 27 additions and 19 deletions

View File

@ -2,6 +2,14 @@
Angular DevTools is a Chrome extension that provides debugging and profiling capabilities for Angular applications. Angular DevTools supports Angular v9 and above, with Ivy enabled. Angular DevTools is a Chrome extension that provides debugging and profiling capabilities for Angular applications. Angular DevTools supports Angular v9 and above, with Ivy enabled.
<div class="video-container">
<iframe
src="https://www.youtube.com/embed/bavWOHZM6zE"
frameborder="0"
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
You can find Angular DevTools in the [Chrome Web Store](https://chrome.google.com/webstore/detail/angular-developer-tools/ienfalfjdbdpebioblfackkekamfmbnh). You can find Angular DevTools in the [Chrome Web Store](https://chrome.google.com/webstore/detail/angular-developer-tools/ienfalfjdbdpebioblfackkekamfmbnh).
After installing Angular DevTools, you can find the extension under the Angular tab in Chrome DevTools. After installing Angular DevTools, you can find the extension under the Angular tab in Chrome DevTools.

View File

@ -2,3 +2,17 @@
// Disable view transition animations. // Disable view transition animations.
transition: none !important; transition: none !important;
} }
.video-container {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}

View File

@ -55,17 +55,3 @@
} }
} }
} }
.error-video-container {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}

View File

@ -6,11 +6,11 @@
</div> </div>
{% if doc.videoUrl.length %} {% if doc.videoUrl.length %}
<div class="error-video-container"> <div class="video-container">
<iframe <iframe
src="{$ doc.videoUrl $}" src="{$ doc.videoUrl $}"
frameborder="0" frameborder="0"
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe> allowfullscreen></iframe>
</div> </div>
{% endif%} {% endif%}
@ -25,4 +25,4 @@
<h2>Debugging the error</h2> <h2>Debugging the error</h2>
{$ doc.debugging | marked $} {$ doc.debugging | marked $}
</div> </div>
{% endblock %} {% endblock %}