This website is built using Docusaurus and includes interactive WebAssembly demos of kiss3d examples.
- Node.js (v18 or later)
- Rust with the
wasm32-unknown-unknowntarget - wasm-bindgen-cli
Install the required Rust tooling:
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-clinpm installThe website includes interactive demos compiled from kiss3d examples to WebAssembly.
Build all demos:
npm run build:demosBuild a single demo:
npm run build:demo <example_name>
# e.g., npm run build:demo cubeThe demos are built to static/demos/ and will be included in the website.
npm startThis starts a local development server at http://localhost:3000. Most changes are reflected live without restarting the server.
Build everything (demos + website):
npm run build:allOr build just the website (assumes demos are already built):
npm run buildThe static site is generated in the build directory.
The website can be deployed to any static hosting service. For GitHub Pages:
GIT_USER=<Your GitHub username> npm run deploywebsite/
├── src/
│ ├── pages/ # React pages (index, examples)
│ └── css/ # Custom styles
├── static/
│ ├── demos/ # Compiled WASM demos
│ └── img/ # Images and logos
├── scripts/
│ └── build-demos.sh # Demo build script
└── docusaurus.config.ts