Skip to content

Commit 4561195

Browse files
chore: fix ci build
1 parent 274ef76 commit 4561195

File tree

6 files changed

+55
-30
lines changed

6 files changed

+55
-30
lines changed

.github/workflows/docs.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77
- main
88
paths:
99
- 'docs/**'
10-
- 'docs-astro/**'
10+
# - 'docs-astro/**'
1111
- '.github/workflows/docs.yml'
1212
pull_request:
1313
paths:
1414
- 'docs/**'
15-
- 'docs-astro/**'
15+
# - 'docs-astro/**'
1616
- '.github/workflows/docs.yml'
1717
schedule:
1818
- cron: "0 22 * * 1,2,3,4,5,6"
@@ -97,28 +97,28 @@ jobs:
9797
branch: main
9898
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
9999

100-
build-astro:
101-
name: Build Astro Site
102-
runs-on: ubuntu-latest
103-
steps:
104-
- name: Checkout repository
105-
uses: actions/checkout@v4
106-
- name: Install, build, and upload Astro site
107-
uses: withastro/action@v3
108-
with:
109-
path: ./docs-astro
110-
# node-version: 20 # Uncomment to specify Node version
111-
# package-manager: pnpm@latest # Uncomment to specify package manager
100+
# build-astro:
101+
# name: Build Astro Site
102+
# runs-on: ubuntu-latest
103+
# steps:
104+
# - name: Checkout repository
105+
# uses: actions/checkout@v4
106+
# - name: Install, build, and upload Astro site
107+
# uses: withastro/action@v3
108+
# with:
109+
# path: ./docs-astro
110+
# # node-version: 20 # Uncomment to specify Node version
111+
# # package-manager: pnpm@latest # Uncomment to specify package manager
112112

113-
deploy-astro:
114-
name: Deploy Astro to GitHub Pages
115-
needs: build-astro
116-
runs-on: ubuntu-latest
117-
if: github.ref == 'refs/heads/main'
118-
environment:
119-
name: github-pages
120-
url: ${{ steps.deployment.outputs.page_url }}
121-
steps:
122-
- name: Deploy to GitHub Pages
123-
id: deployment
124-
uses: actions/deploy-pages@v4
113+
# deploy-astro:
114+
# name: Deploy Astro to GitHub Pages
115+
# needs: build-astro
116+
# runs-on: ubuntu-latest
117+
# if: github.ref == 'refs/heads/main'
118+
# environment:
119+
# name: github-pages
120+
# url: ${{ steps.deployment.outputs.page_url }}
121+
# steps:
122+
# - name: Deploy to GitHub Pages
123+
# id: deployment
124+
# uses: actions/deploy-pages@v4

docs/astro.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ import starlightVideos from 'starlight-videos'
88
// https://astro.build/config
99
export default defineConfig({
1010
site: 'https://cortex.so',
11+
vite: {
12+
build: {
13+
rollupOptions: {
14+
external: [
15+
"@site/src/components/OAICoverage",
16+
"@theme/Tabs",
17+
"@theme/TabItem",
18+
"@theme/DocSidebar",
19+
"@theme/DocSidebarItem",
20+
"@theme/DocCardList",
21+
"../src/components/Diagram",
22+
],
23+
},
24+
},
25+
},
1126
integrations: [
1227
starlight({
1328
title: "Cortex",

docs/src/content/blog/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Test
3+
date: "2023-10-01"
4+
author: Test Author
5+
image: /img/test.jpg
6+
description: Test description
7+
---
8+
9+
Test blog post.

docs/src/content/docs/cortex-llamacpp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ The diagram above illustrates how `llamacpp` communication protocol works:
174174
│ └── (list of third-party dependencies)
175175
```
176176

177-
<!-- ## Runtime-->
177+
{/* ## Runtime */}
178178

179179
## Roadmap
180180

docs/src/content/docs/cortex-platform/about.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Cortex is currently compatible with the following OpenAI API endpoints:
2424
- [/chat/completions](/api-reference#tag/inference/post/v1/chat/completions)
2525
- [/embeddings](/api-reference#tag/embeddings/post/v1/embeddings)
2626

27-
<!--<OAICoverage /-->>
27+
{/* <OAICoverage /> */}

docs/src/content/docs/explanation/engines/llamacpp.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ ngl: 34 # Undefined = loaded from model
106106
| `n_parallel` | Number of parallel instances | No |
107107
| `ngl` | Number of GPU layers | No |
108108

109-
<!-- :::info
109+
{/*
110+
:::info
110111
You can download a `GGUF` model from the following:
111112
- [Cortex Model Repos](/docs/capabilities/models/sources/cortex-hub)
112113
- [HuggingFace Model Repos](/docs/capabilities/models/sources/hugging-face)
113-
::: -->
114+
::: */}

0 commit comments

Comments
 (0)