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

Commit ca2180c

Browse files
committed
Merge branch 'dev' of https://github.com/menloresearch/cortex.cpp into s/feat/spawn-llama-cpp
2 parents b239378 + ae43c53 commit ca2180c

25 files changed

+2729
-2443
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.

docs/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ const config: Config = {
487487
srcDark: "/img/logos/cortex-logo-mark.svg",
488488
width: 34,
489489
},
490-
copyright: ${new Date().getFullYear()} Homebrew Computer Company`,
490+
copyright: ${new Date().getFullYear()} Menlo Research`,
491491
},
492492
prism: {
493493
theme: prismThemes.github,

docs/src/theme/Footer/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ function Footer(): JSX.Element | null {
141141
width={160}
142142
className="mb-4"
143143
sources={{
144-
light: useBaseUrl("/img/logos/homebrew-dark.svg"),
145-
dark: useBaseUrl("/img/logos/homebrew-white.svg"),
144+
light: useBaseUrl("/img/logos/menlo.svg"),
145+
dark: useBaseUrl("/img/logos/menlo.svg"),
146146
}}
147147
/>
148148
</div>

docs/static/img/logos/menlo.svg

Lines changed: 7 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)