Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 2 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ const config: Config = {
onBrokenMarkdownLinks: 'throw',
onBrokenAnchors: 'throw',
favicon: 'logos/favicon.png',

clientModules: [
require.resolve('./src/js/table-helpers.js'),
require.resolve('./src/js/chatbot.js'),
],
i18n: {
defaultLocale: 'en',
Expand Down
24 changes: 24 additions & 0 deletions src/js/chatbot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Simple Dify chatbot loader
(function() {
if (typeof window === 'undefined') return;

// Set configuration
window.difyChatbotConfig = {
token: 'bYIppJMzMieMPDHm'
};

// Load the script
const script = document.createElement('script');
script.src = 'https://udify.app/embed.min.js';
script.defer = true;
document.head.appendChild(script);

// Add custom styles for purple color
const style = document.createElement('style');
style.textContent = `
#dify-chatbot-bubble-button {
background-color: #4B39EF !important;
}
`;
document.head.appendChild(style);
})();