Documentation for tronz, an idiomatic, async-first Rust SDK for the TRON network — inspired by alloy.
The site is built with vocs.
Clone with submodules (the examples
repo is vendored at lib/examples):
git clone --recurse-submodules https://github.com/throgxyz/docs.git
# or, in an existing clone:
git submodule update --initThen run the dev server:
cd vocs
npm install
npm run dev # open the printed local URLNote: vocs 2 / waku currently require an LTS Node (20 or 22). Newer versions (e.g. Node 25) fail during static generation with a
react-servererror.
Example pages are generated from the lib/examples submodule. To refresh them
after the examples repo changes:
./scripts/update.shThis syncs the submodule to main, copies each example's source into
vocs/docs/snippets/<category>/examples/, generates one page per example plus a
category landing page under vocs/docs/pages/examples/, and regenerates the
sidebar items in vocs/example-items.ts.
Edit the per-category descriptions and ordering in
vocs/docs/pages/templates/<category>/README.mdx — the generated pages and
sidebar are derived from these. Do not edit generated files directly.
vocs/vocs.config.ts— site config (title, nav, socials).vocs/sidebar.ts— sidebar layout (imports generatedexample-items.ts).vocs/example-items.ts— generated Examples sidebar (do not edit).vocs/docs/pages/— documentation pages (.md/.mdx).vocs/docs/pages/templates/— hand-written per-category example templates.vocs/docs/pages/examples/— generated example pages (do not edit).vocs/docs/snippets/— example sources, embedded via// [!include ~/snippets/...].scripts/update.sh— regenerates the snippets, example pages, and sidebar.lib/examples—throgxyz/examplesgit submodule (source of the examples).
Licensed under either of Apache License, Version 2.0 or MIT license at your option.