From 9d9e6feccdff8cf9965a8eaa08c7cd315ba4320f Mon Sep 17 00:00:00 2001 From: Xieql Date: Sat, 18 Nov 2023 15:37:01 +0800 Subject: [PATCH] site: add feedback in each doc page Signed-off-by: Xieql --- docs/config.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/config.toml b/docs/config.toml index 2a14f9b22..30e44434f 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -79,3 +79,19 @@ copyright = "The Kurator Authors" url = "https://groups.google.com/g/kurator-dev" icon = "fa fa-envelope" desc = "Kyverno mailing list" + +# Adds an H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events. +# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set. +# If you want this feature, but occasionally need to remove the "Feedback" section from a single page, +# add "hide_feedback: true" to the page's front matter. +[params.ui.feedback] +enable = true +# The responses that the user sees after clicking "yes" (the page was helpful) or "no" (the page was not helpful). +yes = 'Glad to hear it! Please tell us how we can improve.' +no = 'Sorry to hear that. Please tell us how we can improve.' + +[services] +[services.googleAnalytics] +# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback]. +# "UA-00000000-0" is a placeholder Google Analytics ID, Future integration of actual analytics is straightforward, requiring only an update to the GA ID. +id = "UA-00000000-0"