diff --git a/integrations/reo.dev/.eslintrc.json b/integrations/reo.dev/.eslintrc.json deleted file mode 100644 index 2486b4b2d..000000000 --- a/integrations/reo.dev/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["@gitbook/eslint-config/integration"] -} diff --git a/integrations/reo.dev/assets/icon.png b/integrations/reo.dev/assets/icon.png deleted file mode 100644 index 00e29c1a1..000000000 Binary files a/integrations/reo.dev/assets/icon.png and /dev/null differ diff --git a/integrations/reo.dev/assets/preview.png b/integrations/reo.dev/assets/preview.png deleted file mode 100644 index 083da8819..000000000 Binary files a/integrations/reo.dev/assets/preview.png and /dev/null differ diff --git a/integrations/reo.dev/gitbook-manifest.yaml b/integrations/reo.dev/gitbook-manifest.yaml deleted file mode 100644 index 4ac5bbd30..000000000 --- a/integrations/reo.dev/gitbook-manifest.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: reodotdev -title: Reodotdev -icon: ./assets/icon.png -previewImages: - - ./assets/preview.png -description: Plug your GitBook site to your Reo.dev installation. -externalLinks: - - label: Documentation - url: https://www.gitbook.com/integrations/reodotdev -visibility: public -script: ./src/index.ts -# The following scope(s) are available only to GitBook Staff -# See https://developer.gitbook.com/integrations/configurations#scopes -scopes: - - space:script:inject -organization: d8f63b60-89ae-11e7-8574-5927d48c4877 -contentSecurityPolicy: - script-src: static.reo.dev; -summary: | - # Overview - Reo.Dev is the Business to Developer (B2D) ABM platform that helps you find revenue opportunity from developer activity. - This integration lets you add the Reo.Dev Javascript on your published GitBook site to seamlessly analyze developer intent through any interactions with your content on GitBook. - - # How it works - The integration injects the Reodotdev script on your page, using the configured client ID, - so that you can get analytics information from your GitBook site directly inside of Reo. - - # Configure - Install the integration on the GitBook space of your choice. - Locate the Reodotdev's client ID you want to use, which is available in Reodotdev's Integration -> Documentation section - -categories: - - analytics -configurations: - space: - properties: - tracking_id: - type: string - title: Client ID - description: Available in Reodotdev's Integration -> Documentation section - required: - - tracking_id diff --git a/integrations/reo.dev/package.json b/integrations/reo.dev/package.json deleted file mode 100644 index 7c037fdcc..000000000 --- a/integrations/reo.dev/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "@gitbook/integration-reo.dev", - "version": "0.0.1", - "private": true, - "dependencies": { - "@gitbook/api": "*", - "@gitbook/runtime": "*" - }, - "devDependencies": { - "@gitbook/cli": "*" - }, - "scripts": { - "lint": "eslint ./src/**/*.ts", - "typecheck": "tsc --noEmit", - "publish-integrations-staging": "gitbook publish .", - "publish-integrations": "gitbook publish ." - } -} diff --git a/integrations/reo.dev/src/index.ts b/integrations/reo.dev/src/index.ts deleted file mode 100644 index 014301ba3..000000000 --- a/integrations/reo.dev/src/index.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { - createIntegration, - FetchPublishScriptEventCallback, - RuntimeContext, - RuntimeEnvironment, -} from '@gitbook/runtime'; - -import script from './script.raw.js'; - -type ReoDotDevRuntimeContext = RuntimeContext< - RuntimeEnvironment< - {}, - { - tracking_id?: string; - } - > ->; - -export const handleFetchEvent: FetchPublishScriptEventCallback = async ( - event, - { environment }: ReoDotDevRuntimeContext -) => { - const trackingId = environment.spaceInstallation.configuration.tracking_id; - if (!trackingId) { - throw new Error( - `The Reo.Dev tracking ID is missing from the configuration (ID: ${event.spaceId}).` - ); - } - - return new Response(script.replace('', trackingId), { - headers: { - 'Content-Type': 'application/javascript', - 'Cache-Control': 'max-age=604800', - }, - }); -}; - -export default createIntegration({ - fetch_published_script: handleFetchEvent, -}); diff --git a/integrations/reo.dev/src/script.raw.js b/integrations/reo.dev/src/script.raw.js deleted file mode 100644 index 283f2f4d2..000000000 --- a/integrations/reo.dev/src/script.raw.js +++ /dev/null @@ -1,15 +0,0 @@ -const trackingID = ''; - -(function (r, e, o) { - var t, c, n; - c = { clientID: trackingID }; - t = function () { - Reo.init(c); - }; - n = e.createElement("script"); - n.src = o + c.clientID + '/reo.js'; - n.async = !0; - n.onload = t; - - e.head.appendChild(n); -})(window, document, "https://static.reo.dev/"); diff --git a/integrations/reo.dev/tsconfig.json b/integrations/reo.dev/tsconfig.json deleted file mode 100644 index 1a48f875b..000000000 --- a/integrations/reo.dev/tsconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@gitbook/tsconfig/integration.json" -}