docs: rustdoc generation script (scripts/gen-rustdoc.sh) for engine/ml/router api reference — generated at deploy, gitignored (no committed HTML bloat)

This commit is contained in:
z
2026-07-08 06:51:38 -07:00
committed by hanzo-dev
parent 350e32e7df
commit 3588dde0e0
4 changed files with 16 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
public/api/
+1
View File
@@ -0,0 +1 @@
public/api/
+1
View File
@@ -0,0 +1 @@
public/api/
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Generate rustdoc for the Hanzo crates and stage it as each doc app's static /api.
# Run at deploy time (not committed) so the repo stays free of generated HTML.
set -e
gen() { # <repo> <app> <cargo-doc-args...>
local repo="$1" app="$2"; shift 2
( cd ~/work/hanzo/$repo && cargo doc --no-deps "$@" )
mkdir -p ~/work/hanzo/docs/apps/$app/public/api
rsync -a ~/work/hanzo/$repo/target/doc/ ~/work/hanzo/docs/apps/$app/public/api/
}
gen engine engine-docs -p hanzo-engine -p hanzo-server-core --features cuda
gen engine router-docs -p hanzo-router
gen ml ml-docs --workspace