Skip to content

Commit a3c888b

Browse files
authored
Revert "Meilisearch semantic search enabled (#2327)" (#2427)
This reverts commit 016f595.
1 parent 8f464e2 commit a3c888b

File tree

12 files changed

+3883
-4605
lines changed

12 files changed

+3883
-4605
lines changed

.github/workflows/meilisearch-scrape.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ yarn-error.log*
3131

3232
# Ignore .history
3333
/.history/
34-
meili_data/

docusaurus.config.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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',

meilisearch-settings.json

Lines changed: 0 additions & 96 deletions
This file was deleted.

netlify.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[functions]
2-
directory = "netlify/functions"
3-
node_bundler = "esbuild"
4-
51
[[redirects]]
62
from = "/*"
73
to = "/docs/404.html"

0 commit comments

Comments
 (0)