Skip to content

Commit de7b5a9

Browse files
authored
Merge pull request #12277 from nishant-sachdeva/relocating_download_section_in_docs
Relocating download Section in docs
2 parents e0c85c6 + ecf6c8e commit de7b5a9

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

docs/_templates/versions.html

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{# Add rst-badge after rst-versions for small badge style. #}
22
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
33
<span class="rst-current-version" data-toggle="rst-current-version">
4-
<span class="fa fa-book fa-element"> RTD </span>
4+
{% for type, url in downloads %}
5+
{% if type == 'PDF' %}
6+
<a href="{{ url }}">{{ type }}</a>
7+
{% endif %}
8+
{% endfor %}
59

610
<span class="fa fa-element">
711
<input class="container_toggle" type="checkbox" id="switch" name="mode">
@@ -13,13 +17,13 @@
1317
</span>
1418
<div class="rst-other-versions">
1519
<dl>
16-
<dt>{{ _('Versions') }}</dt> {% for slug, url in versions %}
17-
<dd><a href="{{ url }}">{{ slug }}</a></dd>
20+
<dt>{{ _('Downloads') }}</dt> {% for type, url in downloads %}
21+
<dd><a href="{{ url }}">{{ type }}</a></dd>
1822
{% endfor %}
1923
</dl>
2024
<dl>
21-
<dt>{{ _('Downloads') }}</dt> {% for type, url in downloads %}
22-
<dd><a href="{{ url }}">{{ type }}</a></dd>
25+
<dt>{{ _('Versions') }}</dt> {% for slug, url in versions %}
26+
<dd><a href="{{ url }}">{{ slug }}</a></dd>
2327
{% endfor %}
2428
</dl>
2529
<dl>
@@ -33,4 +37,4 @@
3337
</dd>
3438
</dl>
3539
</div>
36-
</div>
40+
</div>

docs/index.rst

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ a 0.y.z version number `to indicate this fast pace of change <https://semver.org
3131
Ideas for improving Solidity or this documentation are always welcome,
3232
read our :doc:`contributors guide <contributing>` for more details.
3333

34+
.. Hint::
35+
36+
You can download this documentation as PDF, HTML or Epub by clicking on the versions
37+
flyout menu in the bottom-left corner and selecting the preferred download format.
38+
39+
3440
Getting Started
3541
---------------
3642

0 commit comments

Comments
 (0)