Skip to content

Commit

Permalink
docs: Add reo to docs (#5182)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg authored Mar 5, 2025
1 parent 594def3 commit 9460dc7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ const config: Config = {
},
],

clientModules: [require.resolve('./plugins/crisp-chat-links.js')],
clientModules: [
require.resolve('./plugins/crisp-chat-links.js'),
require.resolve('./plugins/reo.js'),
],
};

export default async function createConfig() {
Expand Down
10 changes: 10 additions & 0 deletions docs/plugins/reo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';

if (ExecutionEnvironment.canUseDOM) {
!function() {
var e, t, n;
e = '33be044a44400f2', t = function() {
Reo.init({ clientID: '33be044a44400f2' });
}, (n = document.createElement('script')).src = 'https://static.reo.dev/' + e + '/reo.js', n.defer = !0, n.onload = t, document.head.appendChild(n);
}();
}

0 comments on commit 9460dc7

Please sign in to comment.