From 5e59325d0692665166a072555025152b8d1a63b2 Mon Sep 17 00:00:00 2001 From: nishant-sachdeva Date: Sat, 13 Nov 2021 01:31:11 +0530 Subject: [PATCH 1/2] relocated downloads section in versions flyout menu and added downloads Hint in index.html --- docs/_templates/versions.html | 8 ++++---- docs/index.rst | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/_templates/versions.html b/docs/_templates/versions.html index f680b6506d58..fcd79cb3fcfa 100644 --- a/docs/_templates/versions.html +++ b/docs/_templates/versions.html @@ -13,13 +13,13 @@
-
{{ _('Versions') }}
{% for slug, url in versions %} -
{{ slug }}
+
{{ _('Downloads') }}
{% for type, url in downloads %} +
{{ type }}
{% endfor %}
-
{{ _('Downloads') }}
{% for type, url in downloads %} -
{{ type }}
+
{{ _('Versions') }}
{% for slug, url in versions %} +
{{ slug }}
{% endfor %}
diff --git a/docs/index.rst b/docs/index.rst index 60b3d61fac16..1086df9a7be0 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -31,6 +31,12 @@ a 0.y.z version number `to indicate this fast pace of change ` for more details. +.. Hint:: + + You can download this documentation as PDF, HTML or Epub by clicking on the versions + flyout menu in the left bottom corner and selecting the preferred download format. + + Getting Started --------------- From ecf6c8e122da75423bf680a7a0ab62a882654c3e Mon Sep 17 00:00:00 2001 From: nishant-sachdeva Date: Sat, 13 Nov 2021 01:41:38 +0530 Subject: [PATCH 2/2] trailing whitespace removed in index.rst as per the requirements of a syntax test --- docs/_templates/versions.html | 8 ++++++-- docs/index.rst | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/_templates/versions.html b/docs/_templates/versions.html index fcd79cb3fcfa..9168179dfd73 100644 --- a/docs/_templates/versions.html +++ b/docs/_templates/versions.html @@ -1,7 +1,11 @@ {# Add rst-badge after rst-versions for small badge style. #}
- RTD + {% for type, url in downloads %} + {% if type == 'PDF' %} + {{ type }} + {% endif %} + {% endfor %} @@ -33,4 +37,4 @@
- \ No newline at end of file + diff --git a/docs/index.rst b/docs/index.rst index 1086df9a7be0..f69f8692b02c 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -33,8 +33,8 @@ read our :doc:`contributors guide ` for more details. .. Hint:: - You can download this documentation as PDF, HTML or Epub by clicking on the versions - flyout menu in the left bottom corner and selecting the preferred download format. + 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