-
Notifications
You must be signed in to change notification settings - Fork 128
feat: enable Kapa AI chat widget #1937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
df72ce7
Revert "refactor: revert kapa and inkeep search to algolia (#1812)"
barjin 60ab786
feat: enable Kapa AI chat widget
barjin 26a21d2
chore: bump search modal version
barjin b47fc5f
chore: remove inkeep remnants
barjin 316e767
fix: improve layout responsiveness
barjin 88354ee
chore: fix linter error
barjin 70bd599
chore: bump `@apify/docs-search-modal` version
barjin 8d1120c
fix: make the modal scale correctly
barjin 24092a2
Merge branch 'master' into feat/enable-kapa-ai
barjin de6d772
chore: regenerate lockfile
barjin 5b1e7d0
chore: bump package version
barjin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -315,44 +315,27 @@ const plugins = [ | |
]; | ||
|
||
const scripts = [ | ||
// { | ||
// src: 'https://widget.kapa.ai/kapa-widget.bundle.js', | ||
// 'data-website-id': 'a9937f98-9c9d-44d9-a433-fec4cb1c114d', | ||
// 'data-project-name': 'Apify', | ||
// 'data-modal-title': 'Apify AI Assistant', | ||
// 'data-project-color': '#666666', | ||
// 'data-button-hide': 'true', | ||
// 'data-search-mode-enabled': 'true', | ||
// 'data-search-include-source-names': '["Docs"]', | ||
// 'data-project-logo': 'https://apify.com/img/apify-logo/logomark-32x32.svg', | ||
// 'data-modal-example-questions': 'How to run an Actor?,Create a version of an Actor?', | ||
// 'data-modal-override-open-id': 'ask-ai-input', | ||
// 'data-modal-override-open-class': 'search-input', | ||
// 'data-font-size-xs': '1.2rem', | ||
// 'data-font-size-sm': '1.4rem', | ||
// 'data-font-size-md': '1.6rem', | ||
// 'data-font-size-lg': '1.8rem', | ||
// 'data-font-size-xl': '2.0rem', | ||
// async: true, | ||
// }, | ||
// { | ||
// src: 'https://cdn.jsdelivr.net/npm/@inkeep/[email protected]/dist/embed.js', | ||
// type: 'module', | ||
// async: true, | ||
// }, | ||
{ | ||
src: 'https://widget.kapa.ai/kapa-widget.bundle.js', | ||
'data-website-id': 'a9937f98-9c9d-44d9-a433-fec4cb1c114d', | ||
'data-project-name': 'Apify', | ||
'data-modal-title': 'Apify AI Assistant', | ||
'data-project-color': '#666666', | ||
'data-button-hide': 'true', | ||
'data-project-logo': 'https://apify.com/img/apify-logo/logomark-32x32.svg', | ||
'data-modal-example-questions': 'How to run an Actor?,Create a version of an Actor?', | ||
'data-modal-override-open-id': 'ask-ai-input', | ||
'data-modal-override-open-class': 'search-input', | ||
'data-scale-factor': '1.6', | ||
'data-modal-size': '800px', | ||
async: true, | ||
}, | ||
]; | ||
|
||
const customFields = { | ||
// inkeepApiKey: process.env.LOCALHOST || process.env.DEV | ||
// ? 'bbbb9f1001a9b66f282431a80bb743a24e2bdefb85d4f1e4' // development, works with localhost | ||
// : '8af30e40009f26622237f75aab8256064c26a3063717c48a', // production, only works on apify.com (any subdomain) | ||
}; | ||
|
||
module.exports = { | ||
themeConfig, | ||
plugins, | ||
absoluteUrl, | ||
noIndex, | ||
scripts, | ||
customFields, | ||
}; |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.