Skip to content

Add Kapa AI for 8.3 - #1174

Open
rasika-chivate wants to merge 3 commits into
8.3from
Add-Kapa-AI-for-8.3
Open

Add Kapa AI for 8.3#1174
rasika-chivate wants to merge 3 commits into
8.3from
Add-Kapa-AI-for-8.3

Conversation

@rasika-chivate

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 thread mkdocs-base.yml
Comment on lines 71 to +75
- css/osano.css
- css/mongodb.css
- css/landing.css
- css/rating.css
- css/kapa.css
Comment thread docs/js/kapa.js
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 thread docs/js/kapa.js
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 %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants