Merge pull request #12277 from nishant-sachdeva/relocating_download_section_in_docs

Relocating download Section in docs
This commit is contained in:
chriseth 2021-11-29 17:29:33 +01:00 committed by GitHub
commit de7b5a94ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 6 deletions

View File

@ -1,7 +1,11 @@
{# Add rst-badge after rst-versions for small badge style. #}
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span class="fa fa-book fa-element"> RTD </span>
{% for type, url in downloads %}
{% if type == 'PDF' %}
<a href="{{ url }}">{{ type }}</a>
{% endif %}
{% endfor %}
<span class="fa fa-element">
<input class="container_toggle" type="checkbox" id="switch" name="mode">
@ -13,13 +17,13 @@
</span>
<div class="rst-other-versions">
<dl>
<dt>{{ _('Versions') }}</dt> {% for slug, url in versions %}
<dd><a href="{{ url }}">{{ slug }}</a></dd>
<dt>{{ _('Downloads') }}</dt> {% for type, url in downloads %}
<dd><a href="{{ url }}">{{ type }}</a></dd>
{% endfor %}
</dl>
<dl>
<dt>{{ _('Downloads') }}</dt> {% for type, url in downloads %}
<dd><a href="{{ url }}">{{ type }}</a></dd>
<dt>{{ _('Versions') }}</dt> {% for slug, url in versions %}
<dd><a href="{{ url }}">{{ slug }}</a></dd>
{% endfor %}
</dl>
<dl>
@ -33,4 +37,4 @@
</dd>
</dl>
</div>
</div>
</div>

View File

@ -31,6 +31,12 @@ a 0.y.z version number `to indicate this fast pace of change <https://semver.org
Ideas for improving Solidity or this documentation are always welcome,
read our :doc:`contributors guide <contributing>` for more details.
.. Hint::
You can download this documentation as PDF, HTML or Epub by clicking on the versions
flyout menu in the bottom-left corner and selecting the preferred download format.
Getting Started
---------------