Skip to content

Commit b8b4cab

Browse files
committed
Enhance the appearance of the documentation "versions" menu
This makes some minor adjustments to appearance of the downloads and alternate versions sub-menu at the bottom of the sidebar. A download icon will appear next to the name of the currently displayed version to help draw attention to the availablity of downloadable versions of the documentation, this was brought up on the [erlangforums](https://erlangforums.com/t/atomvm-0-6-3-released/3852). The whole word "version:" is used, and moved ouside the highlighted name, rather than the "v:" that was previously shown next to the name with the same highlighting, this had the effect of making the menu easy to overlook, and the purpose was not clear. Icons have been added next to the "Versions" and "Downloads" sub-heading names in the opened versions menu to enhance the overall appearance. Signed-off-by: Winford <winford@object.stream>
1 parent 1f06efc commit b8b4cab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/_templates/versions.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
{# Add rst-badge after rst-versions for small badge style. #}
1212
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
1313
<span class="rst-current-version" data-toggle="rst-current-version">
14-
<span class="fa fa-book">AtomVM Docs</span>
15-
v: {{ current_version }}
14+
<span class="fa fa-download"></span><span class="fa fa-book"> AtomVM Docs version:</span>
15+
{{ current_version }}
1616
<span class="fa fa-caret-down"></span>
1717
</span>
1818
<div class="rst-other-versions">
1919
{% if versions|length >= 1 %}
2020
<dl>
21-
<dt>{{ _('Versions') }}</dt>
21+
<dt><span class="fa fa-book">{{ _(' Versions') }}</span></dt>
2222
{% for slug, url in versions %}
2323
{% if slug == current_version %} <strong> {% endif %}
2424
<dd><a href="{{ url }}">{{ slug }}</a></dd>
@@ -28,7 +28,7 @@
2828
{% endif %}
2929
{% if downloads|length >= 1 %}
3030
<dl>
31-
<dt>{{ _('Downloads') }}</dt>
31+
<dt><span class="fa fa-download">{{ _(' Downloads') }}</span></dt>
3232
{% for type, url in downloads %}
3333
<dd><a href="{{ url }}">{{ type }}</a></dd>
3434
{% endfor %}

0 commit comments

Comments
 (0)