File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ const config: Config = {
115115 "docusaurus-plugin-sass" ,
116116 "./src/plugins/global-sass-var-inject" ,
117117 "./src/plugins/fetch-databend-releases" ,
118+ require . resolve ( "./src/plugins/gurubase-widget.js" ) ,
118119 [
119120 "@docusaurus/plugin-content-docs" ,
120121 /** @type {import('@docusaurus/plugin-content-docs').Options } */
Original file line number Diff line number Diff line change 1+ module . exports = function ( context ) {
2+ return {
3+ name : "docusaurus-plugin-gurubase-widget" , // Feel free to change this name
4+ injectHtmlTags ( ) {
5+ return {
6+ postBodyTags : [
7+ {
8+ tagName : "script" ,
9+ attributes : {
10+ src : "https://widget.gurubase.io/widget.latest.min.js" ,
11+ "data-widget-id" : "5Qdn4o4C4JVH_fpIy6C9rbtLz94ENT73QtXFVpl6uIM" , // Replace with your widget ID
12+ "data-text" : "Ask AI" , // Optional
13+ "data-margins" : '{"bottom": "20px", "right": "20px"}' , // Optional
14+ "data-light-mode" : "false" , // Optional
15+ // "data-name": "YOUR_NAME", // Optional
16+ // "data-icon-url": "YOUR_ICON_URL", // Optional
17+ "data-bg-color" : "#000000" , // Optional
18+ defer : true ,
19+ id : "guru-widget-id" , // Do not change this
20+ } ,
21+ } ,
22+ ] ,
23+ } ;
24+ } ,
25+ } ;
26+ } ;
You can’t perform that action at this time.
0 commit comments