Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 274ef76

Browse files
committed
Merge branch 'dev' into rp/new-docs-site
2 parents c3692ce + 552db8f commit 274ef76

File tree

223 files changed

+24577
-1224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+24577
-1224
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Deploy Docs on new release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
- edited
8+
- released
9+
10+
jobs:
11+
deploy:
12+
name: Deploy to CloudFlare Pages
13+
env:
14+
CLOUDFLARE_PROJECT_NAME: cortex-docs
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
deployments: write
19+
pull-requests: write
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: dev
24+
- uses: actions/setup-node@v3
25+
with:
26+
node-version: 18
27+
28+
- name: Install jq
29+
uses: dcarbone/install-jq-action@v2.0.1
30+
31+
- name: Fill env vars
32+
working-directory: docs
33+
continue-on-error: true
34+
run: |
35+
env_example_file=".env.example"
36+
touch .env
37+
while IFS= read -r line || [[ -n "$line" ]]; do
38+
if [[ "$line" == *"="* ]]; then
39+
var_name=$(echo $line | cut -d '=' -f 1)
40+
echo $var_name
41+
var_value="$(jq -r --arg key "$var_name" '.[$key]' <<< "$SECRETS")"
42+
echo "$var_name=$var_value" >> .env
43+
fi
44+
done < "$env_example_file"
45+
env:
46+
SECRETS: '${{ toJson(secrets) }}'
47+
48+
- name: Install dependencies
49+
working-directory: docs
50+
run: yarn install
51+
- name: Build website
52+
working-directory: docs
53+
run: export NODE_ENV=production && yarn build
54+
55+
- name: Copy redirect file
56+
working-directory: docs
57+
continue-on-error: true
58+
run: cp _redirects build/_redirects
59+
60+
- name: Publish to Cloudflare Pages Production
61+
uses: cloudflare/pages-action@v1
62+
with:
63+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
64+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
65+
projectName: ${{ env.CLOUDFLARE_PROJECT_NAME }}
66+
directory: ./docs/build
67+
branch: main
68+
# Optional: Enable this if you want to have GitHub Deployments triggered
69+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

LICENSE

Lines changed: 183 additions & 183 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@scalar/docusaurus",
3+
"id": "default"
4+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This folder stores temp files that Docusaurus' client bundler accesses.
2+
3+
DO NOT hand-modify files in this folder because they will be overwritten in the
4+
next build. You can clear all build artifacts (including this folder) with the
5+
`docusaurus clear` command.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "changelog-list",
3+
"id": "default"
4+
}

docs/.docusaurus/client-modules.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default [
2+
require("C:\\Users\\tomin\\workspace\\janai\\cortex.cpp\\docs\\node_modules\\infima\\dist\\css\\default\\default.css"),
3+
require("C:\\Users\\tomin\\workspace\\janai\\cortex.cpp\\docs\\node_modules\\@docusaurus\\theme-classic\\lib\\prism-include-languages"),
4+
require("C:\\Users\\tomin\\workspace\\janai\\cortex.cpp\\docs\\node_modules\\@docusaurus\\theme-classic\\lib\\nprogress"),
5+
require("C:\\Users\\tomin\\workspace\\janai\\cortex.cpp\\docs\\node_modules\\@code-hike\\mdx\\dist\\index.css"),
6+
require("C:\\Users\\tomin\\workspace\\janai\\cortex.cpp\\docs\\src\\styles\\main.scss"),
7+
];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "docusaurus-plugin-content-blog",
3+
"id": "default"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "Recent posts",
3+
"items": []
4+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"blogBasePath": "/blog",
3+
"blogTitle": "Blog",
4+
"authorsListPath": "/blog/authors"
5+
}

0 commit comments

Comments
 (0)