Reference: add anchor-link to examples section

Some commands provide a long list of options, which may
"hide" the examples section. To help discoverability, add
an anchor-link to the examples section (if present).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-03-16 13:13:51 +01:00
parent 252db13907
commit e6a8b7e5e4
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,11 @@ your client and daemon API versions.
{{ site.data[include.datafolder][include.datafile].long }} {{ site.data[include.datafolder][include.datafile].long }}
{% endunless %} {% endunless %}
{% if site.data[include.datafolder][include.datafile].examples %}
For example uses of this command, refer to the [examples section](#examples) below.
{% endif %}
{% if site.data[include.datafolder][include.datafile].options %} {% if site.data[include.datafolder][include.datafile].options %}
{% if site.data[include.datafolder][include.datafile].inherited_options %} {% if site.data[include.datafolder][include.datafile].inherited_options %}
{% assign alloptions = site.data[include.datafolder][include.datafile].options | concat:site.data[include.datafolder][include.datafile].inherited_options %} {% assign alloptions = site.data[include.datafolder][include.datafile].options | concat:site.data[include.datafolder][include.datafile].inherited_options %}