From 082e3fe937dad8de5f63a25de07cb228b58e45d4 Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Thu, 2 Feb 2023 20:06:57 -0500 Subject: [PATCH] add algolia docsearch integration (#197) --- docusaurus.config.js | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 70de64a6..ffc82110 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -113,7 +113,20 @@ const config = { // id: 'announcementBar-0', // Increment on change // content: `test`, // }, - // TODO - Algolia Integration + algolia: { + // The application ID provided by Algolia + appId: "TR9JNR7TSP", + // Public API key: it is safe to commit it + apiKey: "a63d89935faca83290750981be9a313c", + indexName: "pcsx2", + // Optional: see doc section below + contextualSearch: true, + // Optional: Algolia search parameters + searchParameters: {}, + // Optional: path for search page that enabled by default (`false` to disable it) + searchPagePath: "search", + //... other Algolia params + }, colorMode: { defaultMode: "dark", disableSwitch: false, @@ -155,10 +168,10 @@ const config = { label: "Donate", position: "right", }, - // { - // type: 'search', - // position: 'right', - // }, + { + type: "search", + position: "right", + }, { to: "https://forums.pcsx2.net/", label: "Forums",