Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from 1inch/typesense
Browse files Browse the repository at this point in the history
feat: typesense search
  • Loading branch information
shoom3301 authored Dec 22, 2021
2 parents 0aab887 + 2864b77 commit ecc1634
Show file tree
Hide file tree
Showing 3 changed files with 350 additions and 1 deletion.
29 changes: 28 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = {
favicon: 'img/favicon/favicon.ico',
organizationName: '1inch', // Usually your GitHub org/user name.
projectName: '1inch-docs', // Usually your repo name.

themes: ['docusaurus-theme-search-typesense'],
presets: [
[
'@docusaurus/preset-classic',
Expand Down Expand Up @@ -121,6 +121,33 @@ const config = {
},
],
},
typesense: {
typesenseCollectionName: '1inch-docs',
typesenseServerConfig: {
nearestNode: {
host: 'fsn-typesense.1inch.io',
port: 443,
protocol: 'https',
},
nodes: [
{
host: 'fsn-typesense.1inch.io',
port: 443,
protocol: 'https',
},
{
host: 'hel-typesense.1inch.io',
port: 443,
protocol: 'https',
},
],
apiKey: 'PkWe6bmCzamVA4lw1Z5ZmRjdG0BQ7Cvh',
},

typesenseSearchParameters: {},

contextualSearch: false,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@svgr/webpack": "^5.5.0",
"buffer": "^6.0.3",
"clsx": "^1.1.1",
"docusaurus-theme-search-typesense": "^0.1.0",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
Expand Down
Loading

0 comments on commit ecc1634

Please sign in to comment.