Skip to content

Commit

Permalink
Add Reo.Dev integration
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhanshub committed Nov 16, 2023
1 parent 2caa685 commit d27080a
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integrations/reo.dev/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@gitbook/eslint-config/integration"]
}
Binary file added integrations/reo.dev/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added integrations/reo.dev/assets/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions integrations/reo.dev/gitbook-manifest.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions integrations/reo.dev/package.json
Original file line number Diff line number Diff line change
@@ -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 ."
}
}
Empty file.
15 changes: 15 additions & 0 deletions integrations/reo.dev/src/script.raw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const trackingID = '<TO_REPLACE>';

(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/");
3 changes: 3 additions & 0 deletions integrations/reo.dev/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@gitbook/tsconfig/integration.json"
}

0 comments on commit d27080a

Please sign in to comment.