Skip to content

Commit 59ef1ea

Browse files
committed
feat: update docs
1 parent ee814cc commit 59ef1ea

File tree

17 files changed

+1245
-5414
lines changed

17 files changed

+1245
-5414
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,13 @@ jobs:
1818
- name: Checkout Project
1919
uses: actions/checkout@v4
2020

21-
- name: Use Node.js 20
22-
uses: actions/setup-node@v4
21+
- uses: oven-sh/setup-bun@v2
2322
with:
24-
node-version: 20
25-
26-
- name: Setup pnpm
27-
uses: pnpm/action-setup@v4
28-
with:
29-
version: 9
23+
bun-version: 1.2.18
3024

3125
- name: Install Dependencies
32-
run: pnpm install
26+
run: bun install
3327

3428
- name: Build
3529
run: |
36-
pnpm run build
30+
bun run build

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,4 @@ pnpm-debug.log*
1818
.env.production
1919

2020
# macOS-specific files
21-
.DS_Store
22-
23-
.idea
21+
.DS_Store

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm-lock.yaml
1+
bun.lock

astro.config.mjs

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,45 @@
1-
import vercel from "@astrojs/vercel/serverless";
1+
import catppuccin from "@catppuccin/starlight";
22
import { defineConfig } from "astro/config";
33
import starlight from "@astrojs/starlight";
4-
import tailwind from "@astrojs/tailwind";
4+
import vercel from "@astrojs/vercel";
5+
6+
import sitemap from "@astrojs/sitemap";
57

68
const site = "https://cotl-api.vercel.app/";
79

810
// https://astro.build/config
911
export default defineConfig({
1012
site,
13+
1114
output: "server",
15+
1216
adapter: vercel({
1317
webAnalytics: {
1418
enabled: true
1519
}
1620
}),
21+
1722
integrations: [
1823
starlight({
1924
title: "COTL_API",
20-
customCss: ["./src/tailwind.css", "@fontsource-variable/inter", "@fontsource-variable/jetbrains-mono"],
2125
logo: {
2226
src: "./src/assets/logo.svg"
2327
},
2428
editLink: {
25-
baseUrl: "https://github.com/xhayper/COTL_API/edit/main/docs"
26-
},
27-
social: {
28-
github: "https://github.com/xhayper/COTL_API",
29-
discord: "https://discord.gg/jZ2DytX3TX"
29+
baseUrl: "https://github.com/xhayper/COTL_API/tree/docs"
3030
},
31+
social: [
32+
{
33+
icon: "github",
34+
label: "GitHub",
35+
href: "https://github.com/xhayper/COTL_API"
36+
},
37+
{
38+
icon: "discord",
39+
label: "Discord",
40+
href: "https://discord.gg/jZ2DytX3TX"
41+
}
42+
],
3143
head: [
3244
{
3345
tag: "meta",
@@ -58,9 +70,13 @@ export default defineConfig({
5870
}
5971
}
6072
],
73+
components: {
74+
Head: "./src/components/Head.astro"
75+
},
6176
lastUpdated: true,
62-
credits: true
77+
credits: true,
78+
plugins: [catppuccin()]
6379
}),
64-
tailwind({ applyBaseStyles: false })
80+
sitemap()
6581
]
6682
});

bun.lock

Lines changed: 1131 additions & 0 deletions
Large diffs are not rendered by default.

ignore-step.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
allowedChanges=("astro.config.ts" "package.json" "pnpm-lock.yaml" "src/" "public/" "tsconfig.json" "ignore-step.sh")
3+
allowedChanges=("astro.config.ts" "package.json" "bun.lock" "src/" "public/" "tsconfig.json" "ignore-step.sh")
44

55
for i in "${allowedChanges[@]}"; do
66
flag=$(git diff HEAD^ HEAD "$i")

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"@astrojs/starlight": "^0.26.1",
15-
"@astrojs/starlight-tailwind": "^2.0.3",
16-
"@astrojs/tailwind": "5.1.0",
17-
"@astrojs/vercel": "7.8.0",
18-
"@fontsource-variable/inter": "^5.0.20",
19-
"@fontsource-variable/jetbrains-mono": "^5.0.22",
20-
"@vercel/analytics": "^1.3.1",
21-
"astro": "^4.14.3",
22-
"sharp": "^0.33.5",
23-
"tailwindcss": "3.4.10"
14+
"@astrojs/sitemap": "^3.4.1",
15+
"@astrojs/starlight": "^0.34.4",
16+
"@astrojs/vercel": "8.2.1",
17+
"@catppuccin/starlight": "^1.0.1",
18+
"@vercel/analytics": "^1.5.0",
19+
"astro": "^5.11.0",
20+
"sharp": "^0.34.2",
21+
"starlight-contributor-list": "^0.3.0"
2422
}
2523
}

0 commit comments

Comments
 (0)