Skip to content

Commit 4351b99

Browse files
author
Erick Friis
authored
docs[patch]: search experiment (langchain-ai#14254)
- npm - search config - custom
1 parent 4fb72ff commit 4351b99

File tree

6 files changed

+396
-975
lines changed

6 files changed

+396
-975
lines changed

docs/.local_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd)"
99
cd "${SCRIPT_DIR}"
1010

1111
mkdir -p ../_dist
12-
rsync -ruv . ../_dist
12+
rsync -ruv --exclude node_modules . ../_dist
1313
cd ../_dist
1414
poetry run python scripts/model_feat_table.py
1515
cp ../cookbook/README.md src/pages/cookbook.mdx

docs/docusaurus.config.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ const config = {
1414
title: "🦜️🔗 Langchain",
1515
tagline: "LangChain Python Docs",
1616
favicon: "img/favicon.ico",
17-
customFields: {
18-
mendableAnonKey: process.env.MENDABLE_ANON_KEY,
19-
},
2017
// Set the production url of your site here
2118
url: "https://python.langchain.com",
2219
// Set the /<baseUrl>/ pathname under which your site is served
@@ -310,6 +307,18 @@ const config = {
310307
],
311308
copyright: `Copyright © ${new Date().getFullYear()} LangChain, Inc.`,
312309
},
310+
algolia: {
311+
// The application ID provided by Algolia
312+
appId: "VAU016LAWS",
313+
314+
// Public API key: it is safe to commit it
315+
// this is linked to erick@langchain.dev currently
316+
apiKey: "6c01842d6a88772ed2236b9c85806441",
317+
318+
indexName: "python-langchain",
319+
320+
contextualSearch: true,
321+
},
313322
}),
314323

315324
scripts: [
@@ -319,6 +328,7 @@ const config = {
319328
async: true,
320329
},
321330
],
331+
322332
};
323333

324334
module.exports = config;

0 commit comments

Comments
 (0)