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 = {
11
11
onBrokenMarkdownLinks : 'throw' ,
12
12
onBrokenAnchors : 'throw' ,
13
13
favicon : 'logos/favicon.png' ,
14
+
14
15
clientModules : [
15
16
require . resolve ( './src/js/table-helpers.js' ) ,
17
+ require . resolve ( './src/js/chatbot.js' ) ,
16
18
] ,
17
19
i18n : {
18
20
defaultLocale : 'en' ,
Original file line number Diff line number Diff line change @@ -132,11 +132,6 @@ const sidebars: SidebarsConfig = {
132
132
dirName : 'misc'
133
133
}
134
134
] ,
135
- } ,
136
- {
137
- type : 'doc' ,
138
- id : 'intro/chatbot' ,
139
- label : 'Documentation Chatbot' ,
140
135
}
141
136
]
142
137
} ;
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