From efb6fe7616123ed35aa2daf9359cafa5b4e575fb Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Fri, 9 Dec 2022 20:18:51 +0200 Subject: Add survey banner (#2768) --- README.md | 3 +++ docs/src/doc/docs/survey_banner.js | 8 ++++++++ docs/src/doc/mkdocs.yml | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 docs/src/doc/docs/survey_banner.js 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 -- cgit