Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/botonic-docs-netlify-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ jobs:
env:
DOCS: docs
GOOGLE_OPTIMIZE_ID: ${{ secrets.GOOGLE_OPTIMIZE_ID }}
SEGMENT_DOCS_API_KEY: ${{ secrets.SEGMENT_DOCS_API_KEY }}
steps:
- name: Checking out to current branch
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setting up node with caching
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '22'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dev dependencies
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/botonic-docs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ jobs:
env:
DOCS: docs
GOOGLE_OPTIMIZE_ID: ${{ secrets.GOOGLE_OPTIMIZE_ID }}
SEGMENT_DOCS_API_KEY: ${{ secrets.SEGMENT_DOCS_API_KEY }}
steps:
- name: Checking out to current branch
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setting up node with caching
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '22'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dev dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ And it works on:
With Botonic you can focus on creating the best conversational experience for your users instead of dealing with different messaging APIs, AI/NLP complexity or managing and scaling infrastructure.
It also comes with a battery of plugins so you can easily integrate popular services into your project, for instance:

- Analytics ([Google Analytics](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-google-analytics), [Segment](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-segment), [Dashbot](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-dashbot))
- Analytics ([Google Analytics](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-google-analytics), [Dashbot](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-dashbot))
- CMS ([Contentful](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-contentful), Sanity)
- NLU ([Dialogflow](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-dialogflow), [Watson](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-watson), [Luis](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-luis), [Inbenta](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-inbenta))

Expand Down
69 changes: 0 additions & 69 deletions docs/docs/plugins/plugin-segment.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/docs/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Check out our [human handoff guide](/docs/concepts/humanhandoff).

Botonic comes with a battery of plugins so you can easily integrate popular services into your project, for instance:

- **Analytics** ([Google Analytics](/docs/plugins/plugin-google-analytics), [Segment](/docs/plugins/plugin-segment), [Dashbot](/docs/plugins/plugin-dashbot))
- **Analytics** ([Google Analytics](/docs/plugins/plugin-google-analytics), [Dashbot](/docs/plugins/plugin-dashbot))
- **CMS** ([Contentful](/docs/plugins/plugin-contentful), Sanity)
- **NLU** ([Dialogflow](/docs/plugins/plugin-dialogflow), [Watson](/docs/plugins/plugin-watson), [Luis](/docs/plugins/plugin-luis), [Inbenta](/docs/plugins/plugin-inbenta))

Expand Down
3 changes: 0 additions & 3 deletions docs/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@
"plugins/plugin-nlu": {
"title": "Plugin NLU"
},
"plugins/plugin-segment": {
"title": "Plugin Segment"
},
"project": {
"title": "Understanding the Project"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@
]
},
"engines": {
"node": ">=16.14.0"
"node": ">=22.0.0"
}
}
22 changes: 11 additions & 11 deletions docs/scripts/update-plugins-docs/bump-readmes-to-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ export const generateHeader = (
title: string
) => {
const header = `---
title: ${title}
id: ${id}
---
---
For more information, refer to **[GitHub](https://github.com/hubtype/botonic/tree/master/packages/${packageName})**.
---
`
title: ${title}
id: ${id}
---

---

For more information, refer to **[GitHub](https://github.com/hubtype/botonic/tree/master/packages/${packageName})**.

---

`
return header
}

Expand Down
1 change: 0 additions & 1 deletion docs/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"plugins/plugin-intent-classification",
"plugins/plugin-luis",
"plugins/plugin-ner",
"plugins/plugin-segment",
"plugins/plugin-watson"
],
"How to Create a Plugin": [
Expand Down
4 changes: 0 additions & 4 deletions docs/src/components/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ import Head from '@docusaurus/Head'
import React from 'react'

function Analytics() {
const segmentSnippet = () => {
return `!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var t=analytics.methods[e];analytics[t]=analytics.factory(t)}analytics.load=function(e,t){var n=document.createElement("script");n.type="text/javascript";n.async=!0;n.src="https://cdn.segment.com/analytics.js/v1/"+e+"/analytics.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(n,a);analytics._loadOptions=t};analytics.SNIPPET_VERSION="4.1.0";analytics.load("${process.env.SEGMENT_DOCS_API_KEY}");analytics.page();}}();`
}
return (
<Head>
<script type='text/javascript'>{segmentSnippet()}</script>
<script
src={`https://www.googleoptimize.com/optimize.js?id=${process.env.GOOGLE_OPTIMIZE_ID}`}
></script>
Expand Down
6 changes: 0 additions & 6 deletions docs/src/theme/Footer/was-page-useful.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ export const WasPageUseful = () => {

const sendWasPageUseful = wasUseful => {
if (isBrowser) return
const data = {
category: 'Was page useful?',
label: `${location}`,
value: wasUseful,
}
window.analytics.track('Was page useful?', data)
}

return (
Expand Down
2 changes: 1 addition & 1 deletion packages/botonic-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ And it works on:
With Botonic you can focus on creating the best conversational experience for your users instead of dealing with different messaging APIs, AI/NLP complexity or managing and scaling infrastructure.
It also comes with a battery of plugins so you can easily integrate popular services into your project, for instance:

- Analytics ([Google Analytics](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-google-analytics), [Segment](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-segment), [Dashbot](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-dashbot))
- Analytics ([Google Analytics](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-google-analytics), [Dashbot](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-dashbot))
- CMS ([Contentful](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-contentful), Sanity)
- NLU ([Dialogflow](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-dialogflow), [Watson](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-watson), [Luis](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-luis), [Inbenta](https://github.com/hubtype/botonic/tree/master/packages/botonic-plugin-inbenta))

Expand Down
Loading