ci: Workflow for docs deployment to cf

This commit is contained in:
2026-07-09 21:56:22 +05:30
parent 30e26f78f9
commit 61c6fe8513
7 changed files with 1166 additions and 14 deletions

View File

@@ -5,6 +5,7 @@ import mermaid from "astro-mermaid";
export default defineConfig({
site: "https://omnia.omniasimulation.com",
base: "/docs",
outDir: "./dist/docs",
integrations: [
mermaid(),
starlight({

View File

@@ -7,11 +7,17 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview"
"preview": "astro preview",
"preview:wrangler": "astro build && wrangler dev"
},
"dependencies": {
"@astrojs/starlight": "^0.41.3",
"astro": "^7.0.7",
"astro-mermaid": "^2.1.0",
"mermaid": "^11.16.0",
"sharp": "^0.33.5"
},
"devDependencies": {
"wrangler": "^4.107.1"
}
}

14
web/docs/wrangler.jsonc Normal file
View File

@@ -0,0 +1,14 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "omnia-docs",
"compatibility_date": "2026-07-09",
"assets": {
"directory": "./dist"
},
"routes": [
{
"pattern": "omnia.adityagupta.dev/docs*",
"zone_name": "adityagupta.dev"
}
]
}