Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oramacloud/plugin-docusaurus

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oramacloud/plugin-docusaurus

Orama Cloud Plugin to integrate indexes with Docusaurus, allowing you to index all your blogs, docs and pages.

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
4
Weekly downloads
 
Created
Source

Orama Cloud - Docusaurus Plugin

A plugin to integrate Docusaurus with your Orama Cloud indexes.

Prerequisites

This project requires NodeJS (version 18 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.

$ npm -v && node -v
9.6.7
v18.17.1

Table of contents

Getting Started

In order to use this plugin in your build process you will also need a Docusaurus index in Orama Cloud. To start using it you can create a free account at cloud.oramasearch.com. After creating your account you can create a new index and copy the index ID and Private API key provided in the index settings page.

Installation

BEFORE YOU INSTALL: please read the prerequisites

To install and set up the library, run:

$ npm install -S @oramacloud/plugin-docusaurus

Or if you prefer using Yarn:

$ yarn add @oramacloud/plugin-docusaurus

Or if you prefer using PNPM:

$ pnpm add @oramacloud/plugin-docusaurus

Usage

Adding the plugin to your Docusaurus project

Add the plugin to your config file:

// docusaurus.config.js

{
  plugins: ['@oramacloud/plugin-docusaurus']
}

Run your build process

After adding the plugin to your Docusaurus project you can run your build process adding the Orama Cloud env variables to it.

GitHub Actions example:

name: Node.js CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    env: 
      ORAMA_CLOUD_PRIVATE_API_KEY: <your_private_api_key>
      ORAMA_CLOUD_INDEX_ID: <your_index_id>
    steps:
      - uses: actions/checkout@v4
      - name: Use Node.js
        uses: actions/setup-node@v3
        with:
          node-version: '20.x' # 18.x or 20.x
      - run: npm ci
      - run: npm run build --if-present
      - run: npm test

To understand better how to add env variables to your GH Actions workflow check the GitHub Actions variables docs

FAQs

Package last updated on 03 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc