Docusaurus

OneChat has an official integration with Docusaurus using the plugin @OneChat/docusaurus-plugin. This plugin enables OneChat live-chat widget in Docusaurus powered websites.

To install the plugin, follow the steps mentioned below.

Add the plugin to your project.
yarn add @OneChat/docusaurus-plugin
or
npm install @OneChat/docusaurus-plugin --save

Configure the plugin in docusaurus.config.js

// docusaurus.config.js
module.exports = {
plugins: ["@OneChat/docusaurus-plugin"],
themeConfig: {
OneChat: {
websiteToken: "Your website inbox token",
baseURL: "https://app.OneChat.com", // optional
enableInDevelopment: false, // optional
}
}
};
Was this article helpful?
Cancel
Thank you!