Files
Matthieu Riegler eb048fd1a7 docs(docs-infra): hide Debugging the errorsection. (#50074)
On the error template, hide `Debugging the error` when there is none provided in the markdown file.

PR Close #50074
2023-05-02 12:15:01 +02:00

37 lines
788 B
HTML

{% import "lib/githubLinks.html" as github -%}
<div class="github-links">
{$ github.githubEditLink(doc, versionInfo) $}
</div>
<div class="content">
<h1>{$ doc.code $}: {$ doc.shortDescription $}</h1>
{% if doc.videoUrl.length %}
<div class="video-container">
<iframe
src="{$ doc.videoUrl $}"
frameborder="0"
allow="accelerometer; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
{% endif%}
{% if doc.videoCaption %}{$ doc.videoCaption | marked $}{% endif%}
<div class="error-description">
<h2>Description</h2>
{$ doc.description | marked $}
</div>
{% if doc.debugging %}
<br>
<div class="debugging">
<h2>Debugging the error</h2>
{$ doc.debugging | marked $}
</div>
{% endif%}
</div>