added search to docusaurus

This commit is contained in:
Conner Gallagher 2022-06-14 12:36:43 -06:00
parent 1a46de0cba
commit b4bc566060
1 changed files with 12 additions and 7 deletions

View File

@ -87,6 +87,11 @@ const config = {
themeConfig: themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({ ({
algolia: {
appId: "XO84KDTPTB",
apiKey: "bc1bca7d93098a0d241c000cd8e900aa",
indexName: "switchboard",
},
colorMode: { colorMode: {
disableSwitch: false, disableSwitch: false,
respectPrefersColorScheme: true, respectPrefersColorScheme: true,
@ -118,10 +123,10 @@ const config = {
}, },
items: [ items: [
// Need to bring in Algolia DocSearch https://docsearch.algolia.com/ // Need to bring in Algolia DocSearch https://docsearch.algolia.com/
// { {
// type: "search", type: "search",
// position: "right", position: "right",
// }, },
{ {
type: "doc", type: "doc",
docId: "introduction", docId: "introduction",
@ -168,13 +173,13 @@ const config = {
}, },
{ {
to: "https://publish.switchboard.xyz/", to: "https://publish.switchboard.xyz/",
label: "Publish", label: "Publisher",
position: "left", position: "right",
}, },
{ {
to: "https://switchboardxyz.medium.com/", to: "https://switchboardxyz.medium.com/",
label: "Blog", label: "Blog",
position: "left", position: "right",
}, },
{ {
type: "localeDropdown", type: "localeDropdown",