diff --git a/integrations/reo.dev/.eslintrc.json b/integrations/reo.dev/.eslintrc.json new file mode 100644 index 000000000..2486b4b2d --- /dev/null +++ b/integrations/reo.dev/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["@gitbook/eslint-config/integration"] +} diff --git a/integrations/reo.dev/assets/icon.png b/integrations/reo.dev/assets/icon.png new file mode 100644 index 000000000..00e29c1a1 Binary files /dev/null and b/integrations/reo.dev/assets/icon.png differ diff --git a/integrations/reo.dev/assets/preview.png b/integrations/reo.dev/assets/preview.png new file mode 100644 index 000000000..083da8819 Binary files /dev/null and b/integrations/reo.dev/assets/preview.png differ diff --git a/integrations/reo.dev/gitbook-manifest.yaml b/integrations/reo.dev/gitbook-manifest.yaml new file mode 100644 index 000000000..4ac5bbd30 --- /dev/null +++ b/integrations/reo.dev/gitbook-manifest.yaml @@ -0,0 +1,42 @@ +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 new file mode 100644 index 000000000..7c037fdcc --- /dev/null +++ b/integrations/reo.dev/package.json @@ -0,0 +1,18 @@ +{ + "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 new file mode 100644 index 000000000..e69de29bb diff --git a/integrations/reo.dev/src/script.raw.js b/integrations/reo.dev/src/script.raw.js new file mode 100644 index 000000000..283f2f4d2 --- /dev/null +++ b/integrations/reo.dev/src/script.raw.js @@ -0,0 +1,15 @@ +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 new file mode 100644 index 000000000..1a48f875b --- /dev/null +++ b/integrations/reo.dev/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "@gitbook/tsconfig/integration.json" +}