diff options
| author | Fuwn <[email protected]> | 2021-04-12 12:07:30 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-04-12 12:07:30 -0700 |
| commit | 22f18ada306e7238a0d35a28e7c3f9f8f3eecb12 (patch) | |
| tree | 2b18eb1e5e950e9e00e04862234415c14b3a4ef6 /docusaurus.config.js | |
| parent | blog: The State of Whirl (diff) | |
| download | site-22f18ada306e7238a0d35a28e7c3f9f8f3eecb12.tar.xz site-22f18ada306e7238a0d35a28e7c3f9f8f3eecb12.zip | |
feature: Algolia search
The dotenv package is required from grabbing GitHub secrets from the environment.
Diffstat (limited to 'docusaurus.config.js')
| -rw-r--r-- | docusaurus.config.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docusaurus.config.js b/docusaurus.config.js index cce5f98..ecee414 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,3 +1,5 @@ +require('dotenv').config(); + /** @type {import('@docusaurus/types').DocusaurusConfig} */ module.exports = { title: 'Whirlsplash', @@ -60,13 +62,10 @@ module.exports = { liveCodeBlock: { playgroundPosition: 'bottom', }, - // TODO: Implement - // algolio: { - // apiKey: '', - // indexName: '', - // contextualSearch: true, - // searchParameters: {}, - // }, + algolia: { + apiKey: process.env.ALGOLIA_API_KEY, + indexName: 'whirlsplash', + }, }, presets: [ [ |