aboutsummaryrefslogtreecommitdiff
path: root/docs/src/doc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/doc')
-rw-r--r--docs/src/doc/docs/survey_banner.js8
-rw-r--r--docs/src/doc/mkdocs.yml2
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/src/doc/docs/survey_banner.js b/docs/src/doc/docs/survey_banner.js
new file mode 100644
index 00000000..536ea34e
--- /dev/null
+++ b/docs/src/doc/docs/survey_banner.js
@@ -0,0 +1,8 @@
+window.addEventListener('load', () => {
+ const appended = document.createElement("a")
+ appended.style = "display: block;text-decoration: none !important;color: #E8F0FE !important;font-family: Inter, Arial, sans-serif !important;font-size: 18px;font-weight: 500;line-height: 24px;padding: 6px 0;position: relative;text-align: center;background-color: #7F52FF;z-index: 5000000;"
+ appended.href = "https://surveys.jetbrains.com/s3/dokka-survey"
+ appended.innerText = "Take part in Dokka devX survey. It helps us a lot, and gives you a chance to win a prize! -->"
+ document.body.prepend(appended)
+ window.scrollTo(0, 0);
+}) \ No newline at end of file
diff --git a/docs/src/doc/mkdocs.yml b/docs/src/doc/mkdocs.yml
index d8aba618..9e101c00 100644
--- a/docs/src/doc/mkdocs.yml
+++ b/docs/src/doc/mkdocs.yml
@@ -95,3 +95,5 @@ nav:
extra_css:
- dokka_colors.css
+extra_javascript:
+ - survey_banner.js \ No newline at end of file