Skip to content

Kapa search/ask PoC #214

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
24 changes: 17 additions & 7 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,23 @@ const config = {
crossorigin: "anonymous",
},
],
scripts: [
{
src: "https://widget.kapa.ai/kapa-widget.bundle.js",
async: true,
defer: true,
"data-website-id": "752e7a80-c213-4acd-b6c3-c3747fbe4ba6",
"data-project-name": "QuestDB",
"data-search-mode-enabled": "true",
"data-modal-open-on-command-k": "true",
"data-modal-command-k-search-mode-default": "true",
"data-project-color": "#21222c",
"data-project-logo": "/docs/images/favicon.webp",
"data-button-border": "1px solid #d9688b",
"data-modal-example-questions": "How do I create a table?,What is designated timestamp?,How do I insert data?",
"data-modal-disclaimer": "This AI assistant has access to QuestDB documentation and can help with time series database questions.",
},
],
markdown: {
mermaid: true,
},
Expand Down Expand Up @@ -122,13 +139,6 @@ const config = {
theme: require("./src/internals/prism-github"),
darkTheme: require("./src/internals/prism-dracula"),
},
algolia: {
appId: process.env.ALGOLIA_APP_ID || 'placeholder-app-id',
apiKey: process.env.ALGOLIA_API_KEY || 'placeholder-api-key',
indexName: "questdb",
searchPagePath: false,
contextualSearch: false,
},
},
presets: [
[
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"dependencies": {
"@docusaurus/faster": "^3.7.0",
"@docusaurus/theme-mermaid": "^3.7.0",
"@docusaurus/theme-search-algolia": "^3.7.0",
"@headlessui/react": "^2.2.0",
"@heroicons/react": "2.2.0",
"@mdx-js/react": "3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tailwind/WideNav/MobileNav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "@headlessui/react"
import { XMarkIcon, ChevronDownIcon } from "@heroicons/react/20/solid"
import { useNavbarSecondaryMenu } from "@docusaurus/theme-common/internal"
import SearchBar from "@theme/SearchBar"
import SearchBar from "../../../../theme/SearchBar"

type NavLink = {
name: string
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tailwind/WideNav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ArrowDownTrayIcon,
} from "@heroicons/react/24/outline"
import { ChevronDownIcon } from "@heroicons/react/20/solid"
import SearchBar from "@theme/SearchBar"
import SearchBar from "../../../theme/SearchBar"
import MobileNav from "./MobileNav"
import { MainCTA } from "../../../components/MainCTA"
import { Release } from "../../../utils"
Expand Down
3 changes: 1 addition & 2 deletions src/theme/NotFound/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react"
import Layout from "../Layout"
import { Section } from "../../components/Section"
import SearchBar from "@theme/SearchBar"
import SearchBar from "../SearchBar"
import Link from "@docusaurus/Link"
import styles from "./styles.module.css"

Expand Down
45 changes: 0 additions & 45 deletions src/theme/SearchBar.tsx

This file was deleted.

Loading