Skip to content

Commit d9b2c93

Browse files
authored
Merge pull request #385 from gerrod3/add-survey
Add survey banner
2 parents 3d9ba43 + 616d7fc commit d9b2c93

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/_static/survey_banner.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
window.onload = function() {
2+
var elem = document.createElement('div');
3+
var body = document.getElementsByClassName("rst-content")[0]
4+
var doc = document.getElementsByClassName("document")[0]
5+
elem.className = "admonition important"
6+
elem.id = "pulp-survey-banner"
7+
elem.innerHTML = "<p>Please take our <a href=\"https://forms.gle/C3QwT9SVncXETipu9\">survey</a> to help us improve Pulp!</p>";
8+
body.insertBefore(elem, doc)
9+
}

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147

148148
html_static_path = ['_static']
149149

150+
html_js_files = ['survey_banner.js']
150151

151152
# If false, no module index is generated.
152153
#html_domain_indices = True

0 commit comments

Comments
 (0)