If you're unsure where to start, head over to the Nillion Private Storage Docs.
This project uses TypeDoc to generate API documentation from TypeScript source code and TSDoc comments, published here: https://nillion.pub/secretvaults-ts
To generate the documentation:
pnpm docs
This creates static HTML documentation in the docs/
directory.
We use TSDoc comments (JSDoc-style) to document our code. TSDoc provides a standardized syntax for TypeScript documentation comments. Please refer to the TSDoc documentation for comprehensive guidelines and examples.
To generate and serve the documentation on a local server:
pnpm docs:serve
This will start a local server and open the documentation in your browser. The documentation will typically be available at http://localhost:3000
.
Alternatively, you can use any static file server:
# Using Python
cd docs && python3 -m http.server 8000
# Using Node.js
npx http-server docs -p 8080
Documentation is automatically built and deployed via GitHub Actions:
- Main branch: Deploys to GitHub Pages root
- Pull requests: Builds docs and posts a comment with artifact link
- Other branches: Can be configured to deploy to subdirectories
We welcome contributions! Here's how you can get involved:
- 🐛 Report bugs and submit feature requests
- 🔧 Submit pull requests
- 📖 Improve documentation
- 💬 Join discussions
- ⭐ Star the repository
This project is licensed under the MIT License.