Add Kapa AI for 8.3 - #1174
Open
rasika-chivate wants to merge 3 commits into
Open
Conversation
rasika-chivate
requested review from
alina-derkach-oaza and
nastena1606
and
a lite review from Copilot
August 21, 2026 06:35
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces the Kapa AI widget into the Percona Server for MongoDB 8.3 docs site by adding a custom “Ask Percona AI” button, widget initialization, and supporting styles, plus a new Legal Notice page and a small template adjustment for Osano script placement in PDF builds.
Changes:
- Add Kapa AI assets (JS/CSS) and wire them into the MkDocs build.
- Add a Legal Notice page referenced by the AI widget disclaimer.
- Adjust PDF override template script block placement for Osano.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| mkdocs-base.yml | Adds Kapa CSS/JS to MkDocs assets list (also currently still references a deleted CSS file). |
| docs/legal-notice.md | New legal notice content for the AI chatbot. |
| docs/js/kapa.js | Injects “Ask Percona AI” button and loads/configures Kapa widget script. |
| docs/css/kapa.css | Styles the new AI button for desktop and mobile. |
| docs/css/percona.css | Removed legacy stylesheet (file deleted). |
| docs/css/landing.css | Removed landing page stylesheet (file deleted). |
| _resourcepdf/overrides/main.html | Updates Osano script inclusion within the scripts block for PDF builds. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
71
to
+75
| - css/osano.css | ||
| - css/mongodb.css | ||
| - css/landing.css | ||
| - css/rating.css | ||
| - css/kapa.css |
Comment on lines
+15
to
+21
| button.id = "ask-percona-ai"; | ||
| button.type = "button"; | ||
|
|
||
| button.innerHTML = ` | ||
| <span class="percona-star">✨</span> | ||
| <span class="percona-text">Ask Percona AI</span> | ||
| `; |
Comment on lines
+67
to
+70
| script.setAttribute( | ||
| "font-size", | ||
| "0.875rem" | ||
| ); |
Comment on lines
+9
to
+12
| {% block scripts %} | ||
| {{ super() }} | ||
| <script src="https://cmp.osano.com/Azqe5vTyLOSbN3OuT/49ad85b5-0418-4794-ab81-7599dddd534c/osano.js"></script> | ||
| {% endblock %} |
alina-derkach-oaza
approved these changes
Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.