Documentation for tronz, an idiomatic, async-first Rust SDK for the TRON network, inspired by alloy.
View the documentation at throgxyz.github.io/docs.
The site is built with Vocs.
Clone the repository with its examples submodule:
git clone --recurse-submodules https://github.com/throgxyz/docs.git
cd docsFor an existing clone:
git submodule update --initInstall dependencies and start the development server:
cd vocs
npm install
npm run devVocs 2 and Waku currently require an LTS version of Node.js, preferably Node 20 or 22. Newer unsupported versions may fail during static generation.
Hand-written documentation lives in:
vocs/docs/pages/
The main site configuration and navigation are defined in:
vocs/vocs.config.ts
vocs/sidebar.ts
To suggest a documentation change, edit the relevant hand-written page and open a pull request.
Runnable examples come from the
throgxyz/examples repository, included
as the lib/examples git submodule.
Refresh generated example pages with:
./scripts/update.shThe update script:
- Syncs the examples submodule.
- Copies example sources into
vocs/docs/snippets/. - Generates pages under
vocs/docs/pages/examples/. - Regenerates
vocs/example-items.ts.
Edit category descriptions and ordering in:
vocs/docs/pages/templates/<category>/README.mdx
Do not edit these generated files directly:
vocs/docs/pages/examples/
vocs/docs/snippets/
vocs/example-items.ts
Contributions are welcome. Please open an issue or pull request in this repository for documentation changes.
For SDK changes, use the tronz repository.
Licensed under either the Apache License, Version 2.0 or the MIT License, at your option.