Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update docsbot #260

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,41 +18,6 @@ module.exports = {
prism: {
additionalLanguages: ['solidity'],
},
cookbookDocsBot: {
features: {
enableExplainSnippet: true,
},
dataSources: [
{
name: "Manta",
hostname: "https://docs.manta.network",
}
],
greetingMessage:
"Hi! Ask me anything about Manta. Here are some questions to get started.",
explainPromptTemplate: "Could you please elaborate on the content within the specified section? The section I'm referring to is:\n```\n$1\n```\n\nI'm seeking a comprehensive explanation to better understand the nuances, procedures, or concepts outlined in this particular segment. Your clarification will greatly assist in grasping the intricacies of the topic at hand.",
dialogTitle: "Ask Cookbook",
suggestions: [
"What's Manta?",
"How are Manta Pacific and Atlantic different?",
"How do I deploy to Manta Pacific?",
],
messageInputPlaceholder:
"Ask anything about Manta!",
ui: {
modalContainer: {
width: "1000px",
height: "800px",
background: "var(--ifm-background-surface-color)",
className: "chefgpt-modal-container",
},
},
avatars: {
ChefGPT: "https://docs.manta.network/img/manta2.png",
User: "https://cookbook.dev/img/Richard.png",
},
apiBaseUrl: "https://simple-web3-api.herokuapp.com",
},
colorMode: {
respectPrefersColorScheme: true,
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@aldridged/docusaurus-plugin-lunr": "^1.0.0-alpha.10",
"@cmfcmf/docusaurus-search-local": "^0.11.0",
"@cookbookdev/docusaurus-chefgpt": "^1.1.12",
"@cookbookdev/docsbot": "^4.5.0",
"@cookbookdev/docusaurus-jsx-runtime-fallback-plugin": "^1.0.1",
"@docusaurus/core": "^2.3.1",
"@docusaurus/plugin-client-redirects": "^2.3.1",
Expand Down
5 changes: 3 additions & 2 deletions src/theme/Navbar/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from 'react';
import NavbarLayout from '@theme/Navbar/Layout';
import NavbarContent from '@theme/Navbar/Content';
import ChefGPT from "@cookbookdev/docusaurus-chefgpt/theme/SearchBar";
import AskCookbook from '@cookbookdev/docsbot/react';

export default function Navbar() {
return (
<NavbarLayout>
<NavbarContent />
<ChefGPT />
<AskCookbook apiKey="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NWMxOGM1MzA1MjA1MDZmZmEwMDhjMmUiLCJpYXQiOjE3MDcxODMxODcsImV4cCI6MjAyMjc1OTE4N30.diwQUey2v9RLd7MWuzI4Uw4ayhLKaditIfa062Sc2YQ" />
</NavbarLayout>
);
}
Loading
Loading