Skip to content

Commit

Permalink
Merge branch 'main' into update/replica_node
Browse files Browse the repository at this point in the history
  • Loading branch information
anaye1997 committed Apr 2, 2024
2 parents 758d0bb + 53481e5 commit e9250a8
Show file tree
Hide file tree
Showing 4 changed files with 304 additions and 390 deletions.
39 changes: 0 additions & 39 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 All @@ -73,10 +38,6 @@ module.exports = {
label: "GitHub",
position: "right",
},
{
type: "localeDropdown",
position: "right",
},
],
},
footer: {
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>
);
}

0 comments on commit e9250a8

Please sign in to comment.