mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-07-27 04:31:57 +00:00
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:
@@ -0,0 +1 @@
|
||||
public/api/
|
||||
@@ -0,0 +1 @@
|
||||
public/api/
|
||||
@@ -0,0 +1 @@
|
||||
public/api/
|
||||
Executable
+13
@@ -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
|
||||
Reference in New Issue
Block a user