Skip to content

Commit ebbf3c8

Browse files
Docs improvements (#1269)
* Improve docs * Formatting * Fix links * Update website/docs/reference/sql/aggregate_functions.md Co-authored-by: Phillip LeBlanc <phillip@spice.ai> * Update website/docs/reference/sql/dml.md Co-authored-by: Phillip LeBlanc <phillip@spice.ai> * Update website/docs/reference/sql/explain.md Co-authored-by: Phillip LeBlanc <phillip@spice.ai> --------- Co-authored-by: Phillip LeBlanc <phillip@spice.ai>
1 parent a4d75d3 commit ebbf3c8

38 files changed

Lines changed: 605 additions & 109 deletions

File tree

README.md

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
# Spice.ai OSS documentation
1+
# Spice.ai OSS Documentation
22

3-
If you are looking to explore the Spice.ai OSS documentation, please go to the documentation website:
3+
This repository contains the source files for the Spice.ai OSS documentation website.
44

5-
[**https://docs.spiceai.org**](https://docs.spiceai.org)
5+
To view the published documentation, visit [**https://docs.spiceai.org**](https://docs.spiceai.org).
66

7-
This repo contains the markdown files which generate the above website. See below for guidance on running with a local environment to contribute to the docs.
7+
To contribute to the documentation, follow the instructions below to set up a local development environment.
88

99
## Overview
1010

1111
The Spice docs are built using [Docusaurus](https://docusaurus.io/) hosted on [GitHub Pages](https://pages.github.com/).
1212

1313
The [website](./website) directory contains the Docusaurus project, markdown files, and theme configurations.
1414

15-
## Pre-requisites
15+
## Prerequisites
1616

17-
- [Node.js](https://nodejs.org/en/)
18-
- [Docusaurus](https://docusaurus.io/docs/installation)
17+
- [Node.js](https://nodejs.org/en/) (v18 or later recommended)
18+
- npm (included with Node.js)
19+
20+
Docusaurus is installed as a project dependency and does not need to be installed globally.
1921

2022
## Environment setup
2123

@@ -38,21 +40,34 @@ cd ./docs/website
3840
npm install
3941
```
4042

41-
## Run local server
43+
## Run Local Server
4244

43-
1. Make sure you're still in the `website` directory
44-
2. Run
45+
1. Ensure you are in the `website` directory.
46+
2. Start the development server:
4547

4648
```sh
4749
npm start
4850
```
4951

50-
3. Navigate to `http://localhost:3000/`
52+
3. Open `http://localhost:3000/` in a browser. The local documentation site should appear, and changes to markdown files are reflected automatically.
53+
54+
## Contributing to the Docs
55+
56+
1. Fork this repository to your GitHub account.
57+
2. Clone your fork and create a new branch:
58+
59+
```sh
60+
git checkout -b my-docs-update
61+
```
62+
63+
3. Make changes to the markdown files in `website/docs/`.
64+
4. Commit and push your changes:
5165

52-
## Update docs
66+
```sh
67+
git add .
68+
git commit -m "docs: describe your change"
69+
git push origin my-docs-update
70+
```
5371

54-
1. Fork repo into your account
55-
1. Create new branch
56-
1. Commit and push changes to forked branch
57-
1. Submit pull request from downstream branch to the upstream branch for the correct version you are targeting
58-
1. Staging site will automatically get created and linked to PR to review and test
72+
5. Open a pull request from your branch to the `trunk` branch of the upstream repository.
73+
6. A staging site is automatically generated and linked in the pull request for review.

website/docs/cli/index.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ The Spice CLI can be installed by:
3232

3333
The `spice` program will be added to the PATH automatically for **bash**, **fish**, and **zsh** shells.
3434

35-
After installing the Spice CLI for the first time, ensure you've got the correct version by running `spice version`. The Runtime version is not expected to be shown, as the runtime will be downloaded and installed automatically upon first run.
35+
After installing the Spice CLI for the first time, verify the installation by running `spice version`. Expected output:
36+
37+
```console
38+
CLI version: 1.x.x
39+
Runtime version: (not installed)
40+
```
41+
42+
The runtime is downloaded and installed automatically upon first run of `spice run`.
3643

3744
## Getting started
3845

website/docs/clients/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
title: 'Clients and Tools'
33
sidebar_label: 'Clients and Tools'
44
sidebar_position: 10
5-
description: 'Client and tools'
5+
description: 'Client and tools for connecting to Spice'
66
pagination_prev: null
77
pagination_next: null
88
---
99

10+
Spice supports a variety of clients and tools for querying data, including SQL clients, BI tools, and programmatic interfaces. Use these integrations to connect applications and dashboards to the Spice runtime.
11+
1012
import DocCardList from '@theme/DocCardList';
1113

1214
<DocCardList />

website/docs/components/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
title: 'Runtime Components'
33
sidebar_label: 'Components'
44
sidebar_position: 5
5-
description: Runtime components'
5+
description: 'Runtime components'
66
pagination_prev: null
77
pagination_next: null
88
---
99

10+
Spice runtime components are the building blocks for configuring data access, acceleration, AI models, embeddings, and secrets. Each component is defined in the `spicepod.yaml` manifest.
11+
1012
import DocCardList from '@theme/DocCardList';
1113

1214
<DocCardList />

website/docs/components/secret-stores/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
title: 'Secret Stores'
33
sidebar_label: 'Secret Stores'
4-
description: ''
4+
description: 'Configure secret stores to manage sensitive data like passwords, tokens, and API keys.'
55
image: /img/og/secret-stores.png
66
sidebar_position: 3
77
pagination_prev: null
88
pagination_next: null
99
---
1010

11-
A Secret Store is a location where `secrets` are stored and can be used to store sensitive data, like passwords, tokens, and secret keys.
11+
A Secret Store is a secure location where secrets (such as passwords, tokens, and API keys) are stored. Spice retrieves secrets from configured stores at runtime and injects them into component parameters.
1212

13-
Spice supports secret stores: [`env`](./env/index.md), [`kubernetes`](./kubernetes/index.md), [`keyring`](./keyring/index.md) and [`aws_secrets_manager`](./aws-secrets-manager/index.md). The `env` secret store is loaded by default.
13+
Supported secret stores include: [`env`](./env/index.md), [`kubernetes`](./kubernetes/index.md), [`keyring`](./keyring/index.md), and [`aws_secrets_manager`](./aws-secrets-manager/index.md). The `env` secret store is loaded by default.
1414

1515
### Default
1616

website/docs/deployment/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: 'Deploy Spice.ai in your environment'
55
sidebar_position: 11
66
---
77

8-
Learn how to deploy Spice.ai in your environment.
8+
Spice supports flexible deployment options ranging from a single binary to fully managed cloud deployments. Choose the architecture that best fits your application's latency, scale, and operational requirements.
99

1010
## Deployment Architectures
1111

website/docs/faq/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Yes. Spice natively supports federated queries across disparate data sources wit
4141

4242
## 5. Is Spice a cache?
4343

44-
Not solely. Spice functions as an active cache or working dataset prefetcher. Unlike traditional caches that fetch data reactively, Spice proactively prefetches and materializes data based on filters, intervals, triggers, or Change Data Capture (CDC), ensuring data readiness for queries. Spice also supports [results caching](/docs/features/caching).
44+
Not solely. Spice functions as an active cache or working dataset prefetcher. A _working dataset_ is a subset of data actively used by an application or model, such as recent records or frequently accessed tables. Unlike traditional caches that fetch data reactively, Spice proactively prefetches and materializes data based on filters, intervals, triggers, or Change Data Capture (CDC), ensuring data readiness for queries. Spice also supports [results caching](/docs/features/caching).
4545

4646
## 6. Is Spice a CDN for databases?
4747

website/docs/features/cdc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pagination_prev: null
77
pagination_next: null
88
---
99

10-
Change Data Capture (CDC) captures changed rows from a database's transaction log and delivers them to consumers with low latency. This technique enables Spice to keep [locally accelerated](../data-acceleration/index.md) datasets up-to-date in real time with the source data. It is efficient because it only transfers the changed rows instead of re-fetching the entire dataset.
10+
Change Data Capture (CDC) captures insert, update, and delete events from a database's transaction log and delivers them to consumers with low latency. This technique enables Spice to keep [locally accelerated](../data-acceleration/index.md) datasets synchronized with the source data in near real-time. CDC is efficient because it transfers only changed rows instead of re-fetching the entire dataset.
1111

1212
## Benefits
1313

website/docs/features/data-acceleration/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,18 @@ spice sql
6161
select * from taxi_trips;
6262
```
6363

64+
Example output:
65+
66+
```
67+
+---------------+--------------+------------------+
68+
| trip_distance | total_amount | tpep_pickup_time |
69+
+---------------+--------------+------------------+
70+
| 1.2 | 9.80 | 2023-01-15 08:32 |
71+
| 3.4 | 18.50 | 2023-01-15 09:10 |
72+
+---------------+--------------+------------------+
73+
Time: 0.012s. 2 rows.
74+
```
75+
76+
Locally accelerated datasets provide significantly faster query times compared to remote sources.
77+
6478
[Learn more about Data Accelerators](/docs/components/data-accelerators) for faster access.

website/docs/features/data-ingestion/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ tags:
1010
- write
1111
---
1212

13-
Data can be ingested by the Spice runtime into a Data Connector using the following methods:
13+
Data can be ingested into the Spice runtime using the following methods:
1414

1515
1. **SQL Statements** – Write data directly to [write-capable connectors](/docs/tags/write) using standard SQL syntax.
16-
2. **OpenTelemetry (OTEL) Ingestion** – Stream OTEL data for real-time processing.
16+
2. **OpenTelemetry (OTEL) Ingestion** – Stream OTEL metrics for real-time processing and acceleration.
17+
18+
Data ingestion is useful for scenarios such as collecting metrics from edge devices, writing application events for later analysis, or populating datasets from external sources.
1719

1820
## SQL Statements
1921

0 commit comments

Comments
 (0)