Skip to content

spiceai/docs

Repository files navigation

Spice.ai OSS Documentation

This repository contains the source files for the Spice.ai OSS documentation website.

To view the published documentation, visit https://docs.spiceai.org.

To contribute to the documentation, follow the instructions below to set up a local development environment.

Overview

The Spice docs are built using Docusaurus hosted on GitHub Pages.

The website directory contains the Docusaurus project, markdown files, and theme configurations.

Prerequisites

  • Node.js (v18 or later recommended)
  • npm (included with Node.js)

Docusaurus is installed as a project dependency and does not need to be installed globally.

Environment setup

  1. Ensure pre-requisites are installed
  2. Clone this repository
git clone https://github.com/spiceai/docs.git
  1. Change to website directory:
cd ./docs/website
  1. Install npm packages:
npm install

Run Local Server

  1. Ensure you are in the website directory.
  2. Start the development server:
npm start
  1. Open http://localhost:3000/ in a browser. The local documentation site should appear, and changes to markdown files are reflected automatically.

Contributing to the Docs

  1. Fork this repository to your GitHub account.

  2. Clone your fork and create a new branch:

    git checkout -b my-docs-update
  3. Make changes to the markdown files in website/docs/.

  4. Commit and push your changes:

    git add .
    git commit -m "docs: describe your change"
    git push origin my-docs-update
  5. Open a pull request from your branch to the trunk branch of the upstream repository.

  6. A staging site is automatically generated and linked in the pull request for review.