Skip to content

Commit

Permalink
Merge pull request #21 from novalagung/feat/algolia-search
Browse files Browse the repository at this point in the history
enable search via algolia
  • Loading branch information
novalagung authored Dec 30, 2022
2 parents 0c35ee8 + 6de4aae commit 37ce0b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ const config = {
darkTheme: darkCodeTheme,
additionalLanguages: ['bash', 'rust', 'toml'],
},
algolia: {
appId: 'DD3TAVK705',
apiKey: '6c174b58b088b4bed49357cdb9108a1b',
indexName: 'CONTENT',
contextualSearch: true,
// externalUrlRegex: 'dasarpemrogramanrust\\.novalagung\\.com',
searchParameters: {},
searchPagePath: 'search', // `false` to disable
},
}),
};

Expand Down
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@docusaurus/plugin-google-gtag": "^2.2.0",
"@docusaurus/plugin-sitemap": "^2.2.0",
"@docusaurus/preset-classic": "^2.2.0",
"@docusaurus/theme-search-algolia": "^2.2.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"disqus-react": "^1.1.5",
Expand Down

0 comments on commit 37ce0b2

Please sign in to comment.