Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Adding Syft integration #502

wants to merge 7 commits into from

Conversation

naagas-syft
Copy link

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.

Copy link

changeset-bot bot commented Jul 17, 2024

🦋 Changeset detected

Latest commit: ed4cb6d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@gitbook/integration-syft Patch

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

@addisonschultz addisonschultz self-requested a review July 17, 2024 04:00
@addisonschultz addisonschultz added the new-integration New integrations added to the integration platform label Jul 17, 2024
@addisonschultz
Copy link
Collaborator

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!

{ environment }: SyftRuntimeContext
) => {
const syftId =
environment.spaceInstallation.configuration.syft_key ??
Copy link
Collaborator

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.

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-integration New integrations added to the integration platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants