Skip to content

Commit edfbcf9

Browse files
authored
add banner with survey to docs (#1729)
1 parent bb5f93b commit edfbcf9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/_templates/layout.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,14 @@
2424
{{ super() }}
2525
{% endif %}
2626
{% endblock %}
27+
28+
<!-- Add banner to all pages! -->
29+
{%- block scripts_end %}
30+
{{ super() }}
31+
<script>
32+
$(document).ready(function () {
33+
const content = $('<div class="alert-info">Help us improve our documentation answering this <a href="https://docs.google.com/forms/d/e/1FAIpQLSdm98VJvKad6V7V-s6Dg5vk34Dyc17fnFBtAOBcaaQ7In7eUw/viewform">~2min survey</a></div>')
34+
$('#banner').append(content);
35+
})
36+
</script>
37+
{%- endblock %}

0 commit comments

Comments
 (0)