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.
The Spice docs are built using Docusaurus hosted on GitHub Pages.
The website directory contains the Docusaurus project, markdown files, and theme configurations.
- 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.
- Ensure pre-requisites are installed
- Clone this repository
git clone https://github.com/spiceai/docs.git- Change to website directory:
cd ./docs/website- Install npm packages:
npm install- Ensure you are in the
websitedirectory. - Start the development server:
npm start- Open
http://localhost:3000/in a browser. The local documentation site should appear, and changes to markdown files are reflected automatically.
-
Fork this repository to your GitHub account.
-
Clone your fork and create a new branch:
git checkout -b my-docs-update
-
Make changes to the markdown files in
website/docs/. -
Commit and push your changes:
git add . git commit -m "docs: describe your change" git push origin my-docs-update
-
Open a pull request from your branch to the
trunkbranch of the upstream repository. -
A staging site is automatically generated and linked in the pull request for review.