New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@trieve/docusaurus-search-theme

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trieve/docusaurus-search-theme

Add the following into your `docusaurus.config.js`

  • 0.1.10
  • npm
  • Socket score

Version published
Maintainers
0
Created

Adding into your site

Add the following into your docusaurus.config.js

npm install @trieve/docusaurus-search-theme
/** @type {import('@docusaurus/types').Config} */
const config = {
  ...
  themes: [
    [
      require.resolve("@trieve/docusaurus-search-theme"),
      {
        apiKey: "tr-****************",
        datasetId: "<your-dataset-id>",
        defaultSearchQueries: [
          "How to use the API reference?",
          "Is there a python sdk?",
          "How to get started?"
        ]
      }
    ],
  ],
};

Configuration options available

NameTypeDefault
datasetIdstring''
apiKeystring''
chatbooleantrue
analyticsbooleantrue
placeholderstring"Search..."
theme"light" or "dark""light"
searchOptionsAutocompleteReqPayload{ search_type: "fulltext" }
suggestedQueriesbooleantrue
defaultSearchQueriesstring[][]
defaultAiQuestionsstring[][]
brandLogoImgSrcUrlstringnull
brandNamestringnull
accentColorstring#CB53EB

Local Development Guide

Run component Build script
clients/docusaurus-theme-search $ yarn dev
Run Example Docusarus application

This may also need to be fully restarted for the theme to update, this will automatically pull from dist/index.js. Some changes get update without a restart but not all.

clients/docusaurus-theme-search/example $ npm run start

Publishing

DO NOT RUN yarn publish, instead run yarn pub

FAQs

Package last updated on 18 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts