Skip to content

Commit a80ddd6

Browse files
committed
dify test
1 parent 3584e32 commit a80ddd6

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

docusaurus.config.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,25 @@ const config: Config = {
5656
mermaid: true,
5757
},
5858

59+
scripts: [
60+
{
61+
innerHTML: `
62+
window.difyChatbotConfig = {
63+
token: 'wairWlveaRXYYqb5',
64+
systemVariables: {
65+
// user_id: 'YOU CAN DEFINE USER ID HERE',
66+
// conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID',
67+
},
68+
}
69+
`,
70+
},
71+
{
72+
src: 'https://udify.app/embed.min.js',
73+
id: 'wairWlveaRXYYqb5',
74+
defer: true,
75+
},
76+
],
77+
5978
plugins: [
6079
[
6180
"posthog-docusaurus",

src/css/custom.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@
2828
--ifm-color-primary-lightest: #4fddbf;
2929
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
3030
}
31+
32+
/* Dify Chatbot Styles */
33+
#dify-chatbot-bubble-button {
34+
background-color: #1C64F2 !important;
35+
}
36+
#dify-chatbot-bubble-window {
37+
width: 24rem !important;
38+
height: 40rem !important;
39+
}

0 commit comments

Comments
 (0)