File tree Expand file tree Collapse file tree 4 files changed +26
-31
lines changed Expand file tree Collapse file tree 4 files changed +26
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ const config: Config = {
1111 onBrokenMarkdownLinks : 'throw' ,
1212 onBrokenAnchors : 'throw' ,
1313 favicon : 'logos/favicon.png' ,
14+
1415 clientModules : [
1516 require . resolve ( './src/js/table-helpers.js' ) ,
17+ require . resolve ( './src/js/chatbot.js' ) ,
1618 ] ,
1719 i18n : {
1820 defaultLocale : 'en' ,
Original file line number Diff line number Diff line change @@ -132,11 +132,6 @@ const sidebars: SidebarsConfig = {
132132 dirName : 'misc'
133133 }
134134 ] ,
135- } ,
136- {
137- type : 'doc' ,
138- id : 'intro/chatbot' ,
139- label : 'Documentation Chatbot' ,
140135 }
141136 ]
142137} ;
Original file line number Diff line number Diff line change 1+ // Simple Dify chatbot loader
2+ ( function ( ) {
3+ if ( typeof window === 'undefined' ) return ;
4+
5+ // Set configuration
6+ window . difyChatbotConfig = {
7+ token : 'bYIppJMzMieMPDHm'
8+ } ;
9+
10+ // Load the script
11+ const script = document . createElement ( 'script' ) ;
12+ script . src = 'https://udify.app/embed.min.js' ;
13+ script . defer = true ;
14+ document . head . appendChild ( script ) ;
15+
16+ // Add custom styles for purple color
17+ const style = document . createElement ( 'style' ) ;
18+ style . textContent = `
19+ #dify-chatbot-bubble-button {
20+ background-color: #4B39EF !important;
21+ }
22+ ` ;
23+ document . head . appendChild ( style ) ;
24+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments