-
Notifications
You must be signed in to change notification settings - Fork 46
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
Adding Syft integration #502
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: ed4cb6d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Hi @naagas-syft ! Thank you so much for adding your contribution to the GitBook integration platform. I have a few questions about the integration - would you be able to reach out to me at addison (@) gitbook.com? Thank you in advance! |
integrations/syft/src/index.tsx
Outdated
{ environment }: SyftRuntimeContext | ||
) => { | ||
const syftId = | ||
environment.spaceInstallation.configuration.syft_key ?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this to environment.spaceInstallation?.configuration?.syft_key
This should fix the error you're seeing in the published site.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, cool, will handle it
Overview
We'd like to add integration that helps Syft customers to use Syft product on their Gitbook sites. We have many customers asking for this and we listened.
Changes
We took inspiration from other analytics gitbook integrations like posthog and heap. We require "script:inject" scope in order to inject our script.
Testing
I tried to publish in unlisted/private mode and failed to do so as the scope is restrictive. so, I couldn't really test this. Please guide me on how to test this.
Thanks and looking forward to a quick review.