This is an automated email from the ASF dual-hosted git repository. kezhenxu94 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/skywalking-website.git
The following commit(s) were added to refs/heads/master by this push: new 1ad8221b271 Add back Kapa.ai to SkyWalking Website and add user consent (#794) 1ad8221b271 is described below commit 1ad8221b2719b676a75c66d303c449e7ce9375b3 Author: kezhenxu94 <kezhenx...@apache.org> AuthorDate: Wed Jul 23 16:04:05 2025 +0800 Add back Kapa.ai to SkyWalking Website and add user consent (#794) --- README.md | 11 +++++++++-- themes/docsy/layouts/partials/scripts.html | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 75e5b04311e..ff5b3bfb71c 100755 --- a/README.md +++ b/README.md @@ -21,10 +21,17 @@ This site uses [Hugo](https://gohugo.io) to organize and manage content with the Located at `content/_index.html`。 -### Projects and Document +### Projects and Documentation -The data of documentation link is located in `data/docs.yml` and formatted as `YAML`. +The data of documentation link is located in `data/docs.yml` and formated as `YAML`. +#### Search Engine +Update the [config file](https://github.com/algolia/docsearch-configs/blob/master/configs/skywalking.json) everytime, so that a new documentation version will be available searched by [algolia](https://www.algolia.com/). + +#### AI Docs Q&A +Release managers of SkyWalking projects should use the Kapa.ai [dashboard](https://app.kapa.ai/) to sync and ingest new documentation/blogs/FAQs if needed, or set up automatic refresh (crawling) of the Q&A sources. + +If you need access to the dashboard, contact @superskyyy for an invitation. ### Event diff --git a/themes/docsy/layouts/partials/scripts.html b/themes/docsy/layouts/partials/scripts.html index e74c8885b45..0a3c5b716f5 100644 --- a/themes/docsy/layouts/partials/scripts.html +++ b/themes/docsy/layouts/partials/scripts.html @@ -37,4 +37,27 @@ }); </script> +<!--Note the 200px position-botton is to leave room for website event popups --> +<script defer +src="https://widget.kapa.ai/kapa-widget.bundle.js" +data-website-id="8a08392b-9c4d-4816-8bc4-f93e0ecdd2a7" +data-project-name="SkyWalking" +data-project-color="#2B74B8" +data-button-text="Ask AI" +data-search-mode-enabled="true" +data-modal-open-on-command-k="true" +data-modal-disclaimer="The AI supports multiple languages, but it may not be accessible in China, a proxy is required." +data-project-logo="https://miro.medium.com/v2/resize:fit:2400/0*kmS-5BQ8ShAhZ_F4.jpg" +data-modal-example-questions="What is Apache SkyWalking?,How to deploy SkyWalking?,How to inject agents non-intrusively?,How to setup trace sampling?" +data-button-position-top="" +data-button-position-right="20px" +data-button-position-bottom="200px" +data-button-position-left="" +data-consent-required="true" +data-user-analytics-cookie-enabled="true" +data-consent-screen-title="Help us improve our AI assistant" +data-consent-screen-disclaimer="By clicking 'Allow tracking', you consent to anonymous user tracking which helps us improve our service. We don't collect any personally identifiable information." +data-consent-screen-accept-button-text="Allow tracking" +data-consent-screen-reject-button-text="No, thanks" +></script> {{ partial "hooks/body-end.html" . }}