From 39e30c7af9ccccf20de6c465b2e509ea1b7e5044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= Date: Wed, 4 Dec 2024 08:45:26 +0100 Subject: [PATCH] add ai chat --- .github/workflows/deploy.yaml | 2 +- docusaurus.config.js | 28 +++++++++++++++++++++++++--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index d4653010080..e598f41a52d 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 20 cache: npm - name: Install dependencies diff --git a/docusaurus.config.js b/docusaurus.config.js index 50f4823b759..817351317a7 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -323,7 +323,7 @@ const config = { additionalLanguages: ['json', 'diff'], }, inkeepConfig: { - chatButtonType: 'icon', // RECTANGLE_SHORTCUT, ICON, or PILL + chatButtonType: 'PILL', // RECTANGLE_SHORTCUT, ICON, or PILL baseSettings: { // see https://docusaurus.io/docs/deployment#using-environment-variables to use docusaurus environment variables apiKey: process.env.INKEEP_API_KEY, // required @@ -340,9 +340,31 @@ const config = { } }, aiChatSettings: { + chatSubjectName: "Fiber", // optional settings - botAvatarSrcUrl: "img/logo.svg", // optional -- use your own bot avatar - botAvatarDarkSrcUrl: "img/logo-dark.svg", // optional -- use your own bot avatar + botAvatarSrcUrl: "/img/logo.svg", // optional -- use your own bot avatar + botAvatarDarkSrcUrl: "/img/logo-dark.svg", // optional -- use your own bot avatar + getHelpCallToActions: [ + { + name: "Discord", + url: "https://gofiber.io/discord", + icon: { + builtIn: "FaDiscord" + } + }, + { + name: "GitHub", + url: "https://github.com/gofiber/fiber", + icon: { + builtIn: "FaGithub" + } + } + ], + quickQuestions: [ + "How to create custom error handler?", + "How can I use live reload?", + "Which template engines does Fiber support?" + ] }, }, }),