Skip to content

Commit

Permalink
👷 Add search to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
awtkns committed May 12, 2023
1 parent 6bc9135 commit c0dc124
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,21 @@ const config = {
},
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: false,
respectPrefersColorScheme: true,
},
algolia: {
appId: '0G401MURU8',
apiKey: '9155bc53c9ece019df8734db3c893206', // public API key
indexName: 'reworkd',
contextualSearch: true,
searchParameters: {},
searchPagePath: 'false',

// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
replaceSearchResultPathname: {
from: '/docs/', // or as RegExp: /\/docs\//
to: '/',
},
},
}),
};
Expand Down
3 changes: 3 additions & 0 deletions docs/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cleanUrls": true
}

0 comments on commit c0dc124

Please sign in to comment.