Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Inkeep searchbar and chat added to the Docs (#12030)

tanjirobd0a5f7387b3
diff --git a/docs/my-website/.gitignore b/docs/my-website/.gitignore
index c5090458cda..7bc0252433b 100644
--- a/docs/my-website/.gitignore
+++ b/docs/my-website/.gitignore
@@ -10,6 +10,7 @@
# Misc
.DS_Store
+.env
.env.local
.env.development.local
.env.test.local
diff --git a/docs/my-website/docusaurus.config.js b/docs/my-website/docusaurus.config.js
index 373b0655bba..23b99c77627 100644
--- a/docs/my-website/docusaurus.config.js
+++ b/docs/my-website/docusaurus.config.js
@@ -1,9 +1,48 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
+require('dotenv').config();
+// @ts-ignore
const lightCodeTheme = require('prism-react-renderer/themes/github');
+// @ts-ignore
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
+const inkeepConfig = {
+ baseSettings: {
+ apiKey: "0cb9c9916ec71bfe0e53c9d7f83ff046daee3fa9ef318f6a",
+ organizationDisplayName: 'liteLLM',
+ primaryBrandColor: '#4965f5',
+ theme: {
+ styles: [
+ {
+ key: "custom-theme",
+ type: "style",
+ value: `
+ .ikp-chat-button__button {
+ margin-right: 80px !important;
+ }
+ `,
+ },
+ ],
+ syntaxHighlighter: {
+ lightTheme: lightCodeTheme,
+ darkTheme: darkCodeTheme,
+ },
+ },
+ },
+ searchSettings: {
+ searchBarPlaceholder: 'Search docs...',
+ },
+ aiChatSettings: {
+ quickQuestions: [
+ 'How do I use the proxy?',
+ 'How do I cache responses?',
+ 'How do I stream responses?',
+ ],
+ aiAssistantAvatar: '/img/favicon.ico',
+ },
+};
+
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'liteLLM',
@@ -27,6 +66,17 @@ const config = {
locales: ['en'],
},
plugins: [
+ [
+ '@inkeep/cxkit-docusaurus',
+ {
+ SearchBar: {
+ ...inkeepConfig,
+ },
+ ChatButton: {
+ ...inkeepConfig,
+ },
+ },
+ ],
[
'@docusaurus/plugin-ideal-image',
{
@@ -101,15 +151,6 @@ const config = {
({
// Replace with your project's social card
image: 'img/docusaurus-social-card.png',
- algolia: {
- // The application ID provided by Algolia
- appId: 'NU85Y4NU0B',
-
- // Public API key: it is safe to commit it
- apiKey: '4e0cf8c3020d0c876ad9174cea5c01fb',
-
- indexName: 'litellm',
- },
navbar: {
title: '🚅 LiteLLM',
items: [
diff --git a/docs/my-website/package.json b/docs/my-website/package.json
index 74154c2b335..d6d35d31340 100644
--- a/docs/my-website/package.json
+++ b/docs/my-website/package.json
@@ -18,6 +18,7 @@
"@docusaurus/plugin-google-gtag": "3.8.1",
"@docusaurus/plugin-ideal-image": "3.8.1",
"@docusaurus/preset-classic": "3.8.1",
+ "@inkeep/cxkit-docusaurus": "^0.5.89",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
@@ -27,7 +28,8 @@
"uuid": "^9.0.1"
},
"devDependencies": {
- "@docusaurus/module-type-aliases": "3.8.1"
+ "@docusaurus/module-type-aliases": "3.8.1",
+ "dotenv": "^16.4.5"
},
"browserslist": {
"production": [