build(docs-infra): add short description "See more" link (#25768)

If there is additional (non-short) description then add in a
link to the short description to take the reader there.

PR Close #25768
This commit is contained in:
Pete Bacon Darwin 2018-09-22 19:51:53 +01:00 committed by Alex Rickabaugh
parent 4b1fd98093
commit d22418d417
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
{% extends 'base.template.html' -%}
{% block body %}
<p class="short-description">{$ doc.shortDescription | marked $}</p>
<section class="short-description">
{$ doc.shortDescription | marked $}
{% if doc.description %}<p><a href="#description">See more...</a></p>{% endif %}
</section>
{% include "includes/security-notes.html" %}
{% include "includes/deprecation.html" %}
{% block overview %}{% endblock %}