Skip to content

Commit

Permalink
Merge branch 'trunk' into advay/enhance-cli-dataset-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Advayp committed Jan 13, 2025
2 parents 381d138 + 86c0c3b commit 9591f76
Show file tree
Hide file tree
Showing 385 changed files with 24,371 additions and 631 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ jobs:
node-version: 20

- name: Install dependencies
working-directory: spiceaidocs
working-directory: website
run: npm install

- name: Build website
working-directory: spiceaidocs
working-directory: website
run: npm run build

- name: Deploy
if: ${{ github.event_name != 'pull_request' && startswith(github.ref, 'refs/tags/v') }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./spiceaidocs/build
publish_dir: ./website/build
cname: docs.spiceai.org
4 changes: 2 additions & 2 deletions .github/workflows/updated_openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Generate API Docs
on:
pull_request:
paths:
- "spiceaidocs/public/openapi.json"
- "website/public/openapi.json"

jobs:
generate-api-docs:
Expand All @@ -22,7 +22,7 @@ jobs:
run: npm ci

- name: Generate API docs
working-directory: spiceaidocs
working-directory: website
run: |
rm docs/api/HTTP/*
npm run docusaurus gen-api-docs all
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.DS_Store
node_modules

spiceaidocs/resources
spiceaidocs/public
website/resources
website/public

.hugo_build.lock

Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "spiceaidocs/themes/docsy"]
path = spiceaidocs/themes/docsy
[submodule "website/themes/docsy"]
path = website/themes/docsy
url = https://github.com/google/docsy.git
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"semi": false,
"singleQuote": true,
"jsxSingleQuote": true,
"tabWidth": 2,
"plugins": [
"prettier-plugin-tailwindcss"
],
"printWidth": 100,
"trailingComma": "none",
"arrowParens": "always"
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This repo contains the markdown files which generate the above website. See belo

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

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

## Pre-requisites

Expand All @@ -26,10 +26,10 @@ The [spiceaidocs](./spiceaidocs) directory contains the Docusaurus project, mark
git clone https://github.com/spiceai/docs.git
```

3. Change to spiceaidocs directory:
3. Change to website directory:

```sh
cd ./docs/spiceaidocs
cd ./docs/website
```

4. Install npm packages:
Expand All @@ -40,7 +40,7 @@ npm install

## Run local server

1. Make sure you're still in the `spiceaidocs` directory
1. Make sure you're still in the `website` directory
2. Run

```sh
Expand Down
30 changes: 0 additions & 30 deletions spiceaidocs/docs/cli/reference/add.md

This file was deleted.

42 changes: 0 additions & 42 deletions spiceaidocs/docs/cli/reference/index.md

This file was deleted.

31 changes: 0 additions & 31 deletions spiceaidocs/docs/cli/reference/init.md

This file was deleted.

29 changes: 0 additions & 29 deletions spiceaidocs/docs/cli/reference/version.md

This file was deleted.

36 changes: 0 additions & 36 deletions spiceaidocs/docs/components/embeddings/index.md

This file was deleted.

23 changes: 0 additions & 23 deletions spiceaidocs/docs/components/models/index.md

This file was deleted.

45 changes: 0 additions & 45 deletions spiceaidocs/docs/features/large-language-models/index.md

This file was deleted.

11 changes: 0 additions & 11 deletions spiceaidocs/docs/features/machine-learning-models/index.md

This file was deleted.

Loading

0 comments on commit 9591f76

Please sign in to comment.