Connect to Docusaurus
Installation
You can install the plugin using any major Node.js package manager.
Usage
To use the plugin you will need to add it to your Docusaurus list of plugins. You can do this by adding the following code to your docusaurus.config.js
file:
Configuration
You can get the variables required for the plugin’s configuration in your Orama Cloud dashboard, right after creating a new index. All fields are required.
Name | Type | Description |
---|---|---|
indexId | string | The ID of the index you want to connect to. |
oramaCloudAPIKey | string | Your Private API key. Keep it safe! |
deploy | boolean | Enables the plugin to deploy the index while building/starting your project. |
Creating an index
Go to your dashboard and click on “Native Integrations”.
Then, click on the Docusaurus logo to create a new index.
As soon as you click on “Create index”, Orama Cloud will give you all the variables you need to set up the plugin.
Now you can set up the plugin on your Docusaurus project.
Please refer to the Usage section above for the plugin configuration.
Once you configured your
docusaurus.config.js
file, Orama will update the index with the data from your Docusaurus project at build time.The plugin will also automatically install the Orama searchbox on your documentation, so there’s no need to add it manually!
Congrats! 🎉 You just connected your Docusaurus project to Orama Cloud.