Skip to content

Commit 8829223

Browse files
authored
🚧 docs for v1.11 (#18)
1 parent f6faaea commit 8829223

31 files changed

Lines changed: 2373 additions & 1757 deletions

‎.env.example‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ASSETS_SERVER_DOMAIN="https://assets.zaneops.dev"

‎.github/workflows/build-push-images-dev.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: PR preview environment
22
on:
3-
pull_request:
3+
# pull_request:
44
workflow_dispatch:
55

66
jobs:

‎.github/workflows/build-push-images.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Build and Push Images
22
on:
33
# Triggers the workflow on push or pull request events but only for the main branch
4-
push:
5-
branches:
6-
- main
4+
# push:
5+
# branches:
6+
# - main
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

‎.github/workflows/close-pr-env.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Close PR environment (DEV)
22
on:
3-
pull_request:
4-
types: [closed]
3+
# pull_request:
4+
# types: [closed]
55
workflow_dispatch:
66

77
jobs:

‎.vscode/settings.json‎

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
{
2-
"editor.codeActionsOnSave": {
3-
"source.organizeImports.biome": "explicit"
4-
},
5-
"[javascript]": {
6-
"editor.defaultFormatter": "biomejs.biome"
7-
},
8-
"[typescript]": {
9-
"editor.defaultFormatter": "biomejs.biome"
10-
},
11-
"[typescriptreact]": {
12-
"editor.defaultFormatter": "biomejs.biome"
13-
},
14-
"editor.defaultFormatter": "biomejs.biome",
15-
"typescript.preferences.importModuleSpecifier": "non-relative",
16-
"typescript.tsdk": "frontend/node_modules/typescript/lib",
17-
"[json]": {
18-
"editor.defaultFormatter": "biomejs.biome"
19-
},
20-
"[html]": {
21-
"editor.defaultFormatter": "vscode.html-language-features"
22-
},
23-
"github-actions.workflows.pinned.workflows": [
24-
".github/workflows/build-push-images.yaml"
25-
]
2+
"editor.codeActionsOnSave": {
3+
"source.organizeImports.biome": "explicit"
4+
},
5+
"[javascript]": {
6+
"editor.defaultFormatter": "biomejs.biome"
7+
},
8+
"[typescript]": {
9+
"editor.defaultFormatter": "biomejs.biome"
10+
},
11+
"[typescriptreact]": {
12+
"editor.defaultFormatter": "biomejs.biome"
13+
},
14+
"editor.defaultFormatter": "biomejs.biome",
15+
"typescript.preferences.importModuleSpecifier": "non-relative",
16+
"typescript.tsdk": "node_modules/typescript/lib",
17+
"[json]": {
18+
"editor.defaultFormatter": "biomejs.biome"
19+
},
20+
"[html]": {
21+
"editor.defaultFormatter": "vscode.html-language-features"
22+
},
23+
"github-actions.workflows.pinned.workflows": [
24+
".github/workflows/build-push-images.yaml"
25+
],
26+
"biome.lsp.bin": "node_modules/.bin/biome"
2627
}

‎astro.config.mjs‎

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
import react from "@astrojs/react";
22
import starlight from "@astrojs/starlight";
3-
import tailwind from "@astrojs/tailwind";
4-
import { defineConfig } from "astro/config";
3+
import tailwindcss from "@tailwindcss/vite";
4+
import { defineConfig, envField } from "astro/config";
55

66
// https://astro.build/config
77
const defaultDomain = process.env.ZANE_DOMAINS?.split(",")[0] ?? "zaneops.dev";
88
export default defineConfig({
99
site: `https://${defaultDomain}`,
10+
11+
env: {
12+
schema: {
13+
ASSETS_SERVER_DOMAIN: envField.string({
14+
context: "client",
15+
access: "public",
16+
url: true,
17+
default: "https://assets.zaneops.dev"
18+
})
19+
}
20+
},
21+
1022
devToolbar: {
1123
enabled: false
1224
},
25+
1326
integrations: [
1427
starlight({
1528
title: "ZaneOps documentation",
@@ -22,14 +35,21 @@ export default defineConfig({
2235
baseUrl: "https://github.com/zane-ops/docs/edit/main/"
2336
},
2437
customCss: [
25-
"./src/tailwind.css",
26-
"./src/assets/theme.css",
38+
"./src/assets/global.css",
2739
"./src/assets/fonts/font-face.css"
2840
],
29-
social: {
30-
github: "https://github.com/zane-ops/zane-ops",
31-
discord: "https://discord.gg/DUdz2vrh9y"
32-
},
41+
social: [
42+
{
43+
label: "Github",
44+
icon: "github",
45+
href: "https://github.com/zane-ops/zane-ops"
46+
},
47+
{
48+
label: "Discord",
49+
icon: "discord",
50+
href: "https://zaneops.dev/discord"
51+
}
52+
],
3353
components: {
3454
Footer: "./src/components/Footer.astro",
3555
Head: "./src/components/Head.astro"
@@ -104,9 +124,11 @@ export default defineConfig({
104124
}
105125
]
106126
}),
107-
tailwind({
108-
applyBaseStyles: false
109-
}),
127+
110128
react()
111-
]
129+
],
130+
131+
vite: {
132+
plugins: [tailwindcss()]
133+
}
112134
});

‎biome.json‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"formatWithErrors": true,
88
"indentStyle": "tab",
99
"indentWidth": 2,
10-
"lineWidth": 80,
11-
"ignore": ["./src/api/v1.ts"]
10+
"lineWidth": 80
1211
},
1312
"javascript": {
1413
"formatter": {
@@ -24,13 +23,5 @@
2423
"indentStyle": "space"
2524
}
2625
},
27-
"files": {
28-
"ignore": [
29-
"./frontend/src/api/v1.ts",
30-
"./frontend/src/routeTree.gen.ts",
31-
"./frontend/dist/**",
32-
"./docs/dist/**",
33-
"node_modules/**"
34-
]
35-
}
26+
"files": {}
3627
}

‎package.json‎

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,24 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@astrojs/check": "^0.8.2",
14-
"@astrojs/react": "^3.6.2",
15-
"@astrojs/starlight": "^0.25.1",
16-
"@astrojs/starlight-tailwind": "^2.0.3",
17-
"@astrojs/tailwind": "^5.1.0",
13+
"@astrojs/check": "^0.9.4",
14+
"@astrojs/react": "^4.3.0",
15+
"@astrojs/starlight": "^0.35.1",
16+
"@astrojs/starlight-tailwind": "^4.0.1",
17+
"@astrojs/tailwind": "^6.0.2",
1818
"@resvg/resvg-js": "^2.6.2",
19-
"@types/react": "^18.3.12",
20-
"@types/react-dom": "^18.3.1",
21-
"astro": "^4.10.2",
19+
"@tailwindcss/vite": "^4.1.11",
20+
"astro": "^5.12.0",
2221
"react": "^18.3.1",
2322
"react-dom": "^18.3.1",
24-
"satori": "^0.12.0",
23+
"satori": "^0.15.2",
2524
"sharp": "^0.32.6",
26-
"tailwindcss": "^3.4.6",
27-
"typescript": "^5.5.3"
25+
"typescript": "^5.8.3"
26+
},
27+
"devDependencies": {
28+
"@biomejs/biome": "2.1.2",
29+
"@types/react": "^19.1.8",
30+
"@types/react-dom": "^19.1.6",
31+
"tailwindcss": "^4.1.11"
2832
}
2933
}

0 commit comments

Comments
 (0)