@@ -13,7 +13,27 @@ module.exports = {
1313 organizationName : 'semgrep' , // Usually your GitHub org/user name.
1414 projectName : 'semgrep' , // Usually your repo name.
1515 trailingSlash : false ,
16+ themes : [ '@markprompt/docusaurus-theme-search' ] ,
1617 themeConfig : {
18+ markprompt : {
19+ projectKey : 'jbhF5LligltdKaJucMjDcWcRodaVpzqE' ,
20+ trigger : { floating : false } ,
21+ systemPrompt : 'You are a kind AI who loves to help people!' ,
22+ model : 'gpt-4' ,
23+ display : 'dialog' ,
24+ search : {
25+ enabled : true ,
26+ provider : {
27+ name : 'algolia' ,
28+ apiKey : 'f53612c29d04a2ff71dce6e3b2f76752' ,
29+ appId : 'RGEY1AKPUC' ,
30+ indexName : 'docs' ,
31+ } ,
32+ } ,
33+ chat : {
34+ assistantId : '5af10a40-7ed8-4aa1-9e7a-65d2858445af' ,
35+ }
36+ } ,
1737 docs : {
1838 sidebar : {
1939 hideable : true ,
@@ -140,6 +160,34 @@ module.exports = {
140160 darkTheme : darkCodeTheme ,
141161 additionalLanguages : [ 'java' , 'ruby' , 'php' , 'csharp' , 'rust' , 'scala' , 'kotlin' , 'bash' , 'json' ] ,
142162 } ,
163+ //algolia: {
164+ // apiKey: 'f53612c29d04a2ff71dce6e3b2f76752',
165+ // indexName: 'docs',
166+
167+ // // Optional: see doc section below
168+ // contextualSearch: false,
169+
170+ // // Optional: see doc section below
171+ // appId: 'RGEY1AKPUC',
172+
173+ // // Optional: Algolia search parameters
174+ // searchParameters: {},
175+ // facetFilters: [],
176+ // //... other Algolia params
177+ // "customRanking": [
178+ // "desc(weight.page_rank)"
179+ // ],
180+ // "ranking": [
181+ // "desc(weight.page_rank)",
182+ // "custom",
183+ // "filters",
184+ // "typo",
185+ // "attribute",
186+ // "words",
187+ // "exact",
188+ // "proximity"
189+ // ]
190+ //},
143191 image : 'https://semgrep.dev/thumbnail.png' ,
144192 //announcementBar: {
145193 // id: 'office-hours',
0 commit comments