aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-12-09 20:18:51 +0200
committerGitHub <noreply@github.com>2022-12-09 20:18:51 +0200
commitefb6fe7616123ed35aa2daf9359cafa5b4e575fb (patch)
tree729b1fbe505305a9657b4dd0e4e5b0c9c9194f06
parentf7691fe539375e2344babcc6d285de6256006fe0 (diff)
downloaddokka-efb6fe7616123ed35aa2daf9359cafa5b4e575fb.tar.gz
dokka-efb6fe7616123ed35aa2daf9359cafa5b4e575fb.tar.bz2
dokka-efb6fe7616123ed35aa2daf9359cafa5b4e575fb.zip
Add survey banner (#2768)
-rw-r--r--README.md3
-rw-r--r--docs/src/doc/docs/survey_banner.js8
-rw-r--r--docs/src/doc/mkdocs.yml2
3 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9743d2f4..4f4e523f 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,9 @@ Just like Kotlin itself, Dokka fully supports mixed-language Java/Kotlin project
standard Javadoc comments in Java files and [KDoc comments](https://kotlinlang.org/docs/reference/kotlin-doc.html) in Kotlin files,
and can generate documentation in multiple formats including standard Javadoc, HTML and Markdown.
+:mega: Dokka team now leads the product to the first Stable release.
+And we’d really appreciate it if you could [take our brief survey](https://surveys.jetbrains.com/s3/dokka-survey) about your dev. experience with the tool. It helps us to understand priorities right and deliver the most valuable things.
+
## Using Dokka
**Full documentation is available at [https://kotlin.github.io/dokka/1.7.20/](https://kotlin.github.io/dokka/1.7.20/)**
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