From 24f8d8c8de2af372bdb366c0ac2cd6c57356b280 Mon Sep 17 00:00:00 2001
From: Taras Savchyn
Date: Fri, 19 Feb 2021 16:42:48 +0200
Subject: [PATCH 1/4] Enable footer for the docs
---
docs/source/_templates/footer.html | 82 ++++++++++++++++++++++++++++++
docs/source/_templates/layout.html | 1 +
2 files changed, 83 insertions(+)
create mode 100644 docs/source/_templates/footer.html
diff --git a/docs/source/_templates/footer.html b/docs/source/_templates/footer.html
new file mode 100644
index 000000000000..b2b37059c74b
--- /dev/null
+++ b/docs/source/_templates/footer.html
@@ -0,0 +1,82 @@
+
diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html
index 3c7ec6e49930..7cc80ae07a32 100644
--- a/docs/source/_templates/layout.html
+++ b/docs/source/_templates/layout.html
@@ -8,6 +8,7 @@
{%- endif %}
{%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %}
{% import 'theme_variables.jinja' as theme_variables %}
+{% set show_netlify_badge = True %}
From 3a3479cce7e0a26b980d5b742c54726ea76aad2d Mon Sep 17 00:00:00 2001
From: Taras Savchyn
Date: Fri, 19 Feb 2021 16:54:26 +0200
Subject: [PATCH 2/4] Fix elements order
---
docs/source/_templates/footer.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/source/_templates/footer.html b/docs/source/_templates/footer.html
index b2b37059c74b..e20633f853d4 100644
--- a/docs/source/_templates/footer.html
+++ b/docs/source/_templates/footer.html
@@ -69,8 +69,6 @@
{% endtrans %}
{%- endif %}
- {%- block extrafooter %} {% endblock %}
-
{%- if show_netlify_badge %}
{% trans %}
@@ -79,4 +77,6 @@
{% endtrans %}
{%- endif %}
+ {%- block extrafooter %} {% endblock %}
+
From 70739c5a2b2bd398d59bcd7c1cdafd4b6121aab7 Mon Sep 17 00:00:00 2001
From: Taras Savchyn
Date: Fri, 19 Feb 2021 17:54:27 +0200
Subject: [PATCH 3/4] Adjust deploy badge location
---
docs/source/_templates/footer.html | 26 ++++++++++----------------
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git a/docs/source/_templates/footer.html b/docs/source/_templates/footer.html
index e20633f853d4..b8058ba66842 100644
--- a/docs/source/_templates/footer.html
+++ b/docs/source/_templates/footer.html
@@ -58,25 +58,19 @@
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
{%- endif %}
-
-
-
- {%- if show_sphinx %}
- {% trans %}
-
- {% endtrans %}
- {%- endif %}
+ {% endtrans %}
+ {%- endif %}
- {%- if show_netlify_badge %}
- {% trans %}
-
+ {%- if show_netlify_badge %}
+ {% trans %}

-
- {% endtrans %}
- {%- endif %}
-
+ {% endtrans %}
+ {%- endif %}
+
+
{%- block extrafooter %} {% endblock %}
From f752ddc210b6065de28bb5252fa28187541fb792 Mon Sep 17 00:00:00 2001
From: Taras Savchyn
Date: Fri, 19 Feb 2021 17:57:59 +0200
Subject: [PATCH 4/4] Fix order
---
docs/source/_templates/footer.html | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/docs/source/_templates/footer.html b/docs/source/_templates/footer.html
index b8058ba66842..e607dd5ee687 100644
--- a/docs/source/_templates/footer.html
+++ b/docs/source/_templates/footer.html
@@ -58,19 +58,21 @@
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
{%- endif %}
- {%- if show_sphinx %}
+ {%- if show_netlify_badge %}
{% trans %}
- Built with Sphinx using a theme provided by Read the Docs.
+
+
{% endtrans %}
{%- endif %}
- {%- if show_netlify_badge %}
+ {%- if show_sphinx %}
{% trans %}
-
+ Built with Sphinx using a theme provided by Read the Docs.
{% endtrans %}
{%- endif %}
+
{%- block extrafooter %} {% endblock %}