Skip to content

Commit 4268cc7

Browse files
authored
Add chatbot (#969)
<!-- Explain the changes introduced in your PR --> ## Pull Request approval You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel.
1 parent 3abf8ce commit 4268cc7

File tree

8 files changed

+6985
-99
lines changed

8 files changed

+6985
-99
lines changed

baseai/memory/docs/index.ts renamed to baseai/memory/memory-sg-docs-live/index.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { MemoryI } from '@baseai/core';
22

33
const memoryDocs = (): MemoryI => ({
4-
name: 'docs',
5-
description: 'Docs folder of sourcegraph docs repository as an auto-synced memory',
4+
name: 'memory-sg-docs-live',
5+
description: 'An AI memory storing all Sourcegraph docs.',
66
git: {
77
enabled: true,
88
include: ['**/*.mdx'],
99
gitignore: true,
10-
deployedAt: '5f3fec8530280d01a783aadcdeb0ccc3f9cd8b70',
11-
embeddedAt: ''
10+
embeddedAt: '',
11+
deployedAt: 'ab6065ecc6c667a5b8c0ded35498a17659d34333'
1212
},
1313
documents: {
1414
meta: doc => {
@@ -22,3 +22,6 @@ const memoryDocs = (): MemoryI => ({
2222
});
2323

2424
export default memoryDocs;
25+
26+
// Old
27+
// deployedAt: '5f3fec8530280d01a783aadcdeb0ccc3f9cd8b70',

package.json

Lines changed: 77 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,79 @@
11
{
2-
"name": "sourcegraph-docs",
3-
"version": "0.1.0",
4-
"private": true,
5-
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint",
10-
"baseai": "baseai",
11-
"sync": "npx baseai@latest deploy -m docs",
12-
"llmstxt": "node scripts/llms-txt-generator.js"
13-
},
14-
"browserslist": "defaults, not ie <= 11",
15-
"dependencies": {
16-
"@algolia/autocomplete-core": "^1.9.2",
17-
"@algolia/client-search": "^4.22.1",
18-
"@baseai/core": "^0.9.40",
19-
"@docsearch/react": "3",
20-
"@headlessui/react": "^1.7.13",
21-
"@heroicons/react": "^2.0.18",
22-
"@langbase/components": "^0.1.5",
23-
"@mdx-js/mdx": "^3.0.1",
24-
"@next/third-parties": "^14.1.4",
25-
"@radix-ui/react-hover-card": "^1.1.1",
26-
"@radix-ui/react-select": "^2.0.0",
27-
"@radix-ui/react-slot": "^1.0.2",
28-
"@tailwindcss/typography": "^0.5.7",
29-
"@types/node": "20.4.9",
30-
"@types/react": "18.2.20",
31-
"@types/react-dom": "18.2.7",
32-
"@types/react-highlight-words": "^0.16.4",
33-
"algoliasearch": "^4.22.1",
34-
"autoprefixer": "^10.4.12",
35-
"class-variance-authority": "^0.7.0",
36-
"clsx": "^1.2.1",
37-
"contentlayer": "^0.3.4",
38-
"date-fns": "^2.30.0",
39-
"fast-glob": "^3.2.12",
40-
"feed": "^4.2.2",
41-
"flexsearch": "^0.7.31",
42-
"github-slugger": "^2.0.0",
43-
"js-yaml": "^4.1.0",
44-
"kbar": "^0.1.0-beta.44",
45-
"langbase": "^1.1.26",
46-
"lucide-react": "^0.372.0",
47-
"mdx": "^0.3.1",
48-
"next": "^14.2.3",
49-
"next-contentlayer": "^0.3.4",
50-
"next-themes": "^0.2.1",
51-
"prism-react-renderer": "^2.0.6",
52-
"react": "18.3.1",
53-
"react-dom": "18.3.1",
54-
"react-highlight-words": "^0.20.0",
55-
"react-syntax-highlighter": "^15.5.0",
56-
"rehype-autolink-headings": "^7.1.0",
57-
"rehype-pretty-code": "^0.10.2",
58-
"rehype-slug": "^6.0.0",
59-
"rehype-toc": "^3.0.2",
60-
"remark-gfm": "3.0.1",
61-
"shiki": "^0.14.5",
62-
"simple-functional-loader": "^1.2.1",
63-
"tailwind-merge": "^2.3.0",
64-
"tailwindcss": "^3.3.3",
65-
"tailwindcss-animate": "^1.0.7",
66-
"typescript": "5.1.6",
67-
"unist-util-visit": "^5.0.0"
68-
},
69-
"devDependencies": {
70-
"baseai": "^0.9.40",
71-
"eslint": "8.45.0",
72-
"eslint-config-next": "13.4.16",
73-
"glob": "^11.0.1",
74-
"prettier": "^3.0.1",
75-
"prettier-plugin-tailwindcss": "^0.5.2",
76-
"sharp": "^0.32.0"
77-
}
2+
"name": "sourcegraph-docs",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint",
10+
"baseai": "baseai",
11+
"sync": "npx baseai@latest deploy -m memory-sg-docs-live",
12+
"llmstxt": "node scripts/llms-txt-generator.js"
13+
},
14+
"browserslist": "defaults, not ie <= 11",
15+
"dependencies": {
16+
"@algolia/autocomplete-core": "^1.9.2",
17+
"@algolia/client-search": "^4.22.1",
18+
"@baseai/core": "^0.9.40",
19+
"@docsearch/react": "3",
20+
"@headlessui/react": "^1.7.13",
21+
"@heroicons/react": "^2.0.18",
22+
"@langbase/components": "^0.1.6",
23+
"@mdx-js/mdx": "^3.0.1",
24+
"@next/third-parties": "^14.1.4",
25+
"@radix-ui/react-hover-card": "^1.1.1",
26+
"@radix-ui/react-select": "^2.0.0",
27+
"@radix-ui/react-slot": "^1.0.2",
28+
"@tailwindcss/typography": "^0.5.7",
29+
"@types/node": "20.4.9",
30+
"@types/react": "18.2.20",
31+
"@types/react-dom": "18.2.7",
32+
"@types/react-highlight-words": "^0.16.4",
33+
"algoliasearch": "^4.22.1",
34+
"autoprefixer": "^10.4.12",
35+
"class-variance-authority": "^0.7.0",
36+
"clsx": "^1.2.1",
37+
"contentlayer": "^0.3.4",
38+
"date-fns": "^2.30.0",
39+
"fast-glob": "^3.2.12",
40+
"feed": "^4.2.2",
41+
"flexsearch": "^0.7.31",
42+
"github-slugger": "^2.0.0",
43+
"js-yaml": "^4.1.0",
44+
"kbar": "^0.1.0-beta.44",
45+
"langbase": "^1.1.46",
46+
"lucide-react": "^0.372.0",
47+
"mdx": "^0.3.1",
48+
"next": "^14.2.3",
49+
"next-contentlayer": "^0.3.4",
50+
"next-themes": "^0.2.1",
51+
"prism-react-renderer": "^2.0.6",
52+
"react": "18.3.1",
53+
"react-dom": "18.3.1",
54+
"react-highlight-words": "^0.20.0",
55+
"react-syntax-highlighter": "^15.5.0",
56+
"rehype-autolink-headings": "^7.1.0",
57+
"rehype-pretty-code": "^0.10.2",
58+
"rehype-slug": "^6.0.0",
59+
"rehype-toc": "^3.0.2",
60+
"remark-gfm": "3.0.1",
61+
"shiki": "^0.14.5",
62+
"simple-functional-loader": "^1.2.1",
63+
"tailwind-merge": "^2.3.0",
64+
"tailwindcss": "^3.3.3",
65+
"tailwindcss-animate": "^1.0.7",
66+
"typescript": "5.1.6",
67+
"unist-util-visit": "^5.0.0"
68+
},
69+
"devDependencies": {
70+
"baseai": "^0.9.40",
71+
"dotenv": "^16.4.7",
72+
"eslint": "8.45.0",
73+
"eslint-config-next": "13.4.16",
74+
"glob": "^11.0.1",
75+
"prettier": "^3.0.1",
76+
"prettier-plugin-tailwindcss": "^0.5.2",
77+
"sharp": "^0.32.0"
78+
}
7879
}

0 commit comments

Comments
 (0)