diff --git a/docs/conf.py b/docs/conf.py index 13bb0e52..c5cad65b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -145,3 +145,9 @@ } autoclass_content = 'both' + +# qiskit package specific variables +html_context = { + 'repo_name': 'Example Repo', + 'analytics_enabled': True +} \ No newline at end of file diff --git a/qiskit_sphinx_theme/footer.html b/qiskit_sphinx_theme/footer.html index e6cb6525..066fffd3 100644 --- a/qiskit_sphinx_theme/footer.html +++ b/qiskit_sphinx_theme/footer.html @@ -10,21 +10,17 @@ {% endif %} - {% if theme_pytorch_project == 'tutorials' %} + {% if analytics_enabled %}
-
Was this helpful?
- - -
Thank you
+
Was this page helpful?
+ Yes + No +
Thank you!

- - {% else %} - -
- + {% endif %}
@@ -69,3 +65,10 @@ + + diff --git a/qiskit_sphinx_theme/layout.html b/qiskit_sphinx_theme/layout.html index a2c1f194..666b59fc 100644 --- a/qiskit_sphinx_theme/layout.html +++ b/qiskit_sphinx_theme/layout.html @@ -42,43 +42,63 @@ {% endif %} - - {%- for css in css_files %} - {%- if css|attr("rel") %} - - {%- else %} - - {%- endif %} - {%- endfor %} - {%- for cssfile in extra_css_files %} - - {%- endfor %} - - {%- block linktags %} - {%- if hasdoc('about') %} - - {%- endif %} - {%- if hasdoc('genindex') %} - - {%- endif %} - {%- if hasdoc('search') %} - - {%- endif %} - {%- if hasdoc('copyright') %} - - {%- endif %} - {%- if next %} - - {%- endif %} - {%- if prev %} - - {%- endif %} - {%- endblock %} - {%- block extrahead %} {% endblock %} - - {# Keep modernizr in head - http://modernizr.com/docs/#installing #} - + + {% if analytics_enabled %} + + + {% endif %}
diff --git a/qiskit_sphinx_theme/static/css/theme.css b/qiskit_sphinx_theme/static/css/theme.css index 7f03803f..c4341ae1 100644 --- a/qiskit_sphinx_theme/static/css/theme.css +++ b/qiskit_sphinx_theme/static/css/theme.css @@ -10527,8 +10527,8 @@ ul.pytorch-breadcrumbs a { .rst-content footer .helpful-container .helpful-question, .rst-content footer .helpful-container .was-helpful-thank-you { padding: 0.625rem 1.25rem 0.625rem 1.25rem; } -.rst-content footer .helpful-container .was-helpful-thank-you { - display: none; +#was-helpful-thank-you { + visibility: hidden; } .rst-content footer .helpful-container .helpful-question.yes-link, .rst-content footer .helpful-container .helpful-question.no-link { color: #8B34FC;