mirror of
https://github.com/sortedcord/omnia.git
synced 2026-07-22 12:02:49 +05:30
ci: Workflow for docs deployment to cf
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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
14
web/docs/wrangler.jsonc
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user