Skip to content

Commit

Permalink
Merge pull request #101 from NillionNetwork/feature/autodocs
Browse files Browse the repository at this point in the history
feat(docs): added typedoc gen script and instructions
  • Loading branch information
wwwehr authored Feb 13, 2025
2 parents f64470b + 56d9451 commit 152acca
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ yarn add @nillion/client-wasm @nillion/client-vms @nillion/client-react-hooks
- 💻 [Code examples](./client-vms/tests/) - See the TypeScript client in action
- ⚛️ [React Hooks](./client-react-hooks/) - Learn how to use our React hooks

### Build docs from source tree

Clone this repo, and from the repo root run:
```shell
pnpm -F client-vms docs
```

## Packages

- `@nillion/client-react-hooks` - React hooks built on `@nillion/client-vms` and `@tanstack/react-query`
Expand Down
4 changes: 3 additions & 1 deletion client-vms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"typecheck": "tsc",
"test": "vitest test",
"clean": "rm -rf dist",
"docs": "typedoc",
"watch:esbuild": "node esbuild.config.mjs --watch",
"watch:types": "tsc -p tsconfig.build.json --watch",
"build": "pnpm clean && node esbuild.config.mjs && tsc -p tsconfig.build.json",
Expand All @@ -23,8 +24,8 @@
"dependencies": {
"@bufbuild/protobuf": "^2.2.2",
"@connectrpc/connect": "^2.0.0",
"@connectrpc/connect-web": "^2.0.0",
"@connectrpc/connect-node": "^2.0.0",
"@connectrpc/connect-web": "^2.0.0",
"@cosmjs/proto-signing": "^0.32.4",
"@cosmjs/stargate": "^0.32.4",
"@nillion/client-wasm": "workspace:^",
Expand All @@ -45,6 +46,7 @@
"browserslist": "^4.24.2",
"dotenv": "^16.4.5",
"esbuild-plugin-browserslist": "^0.15.0",
"typedoc": "^0.27.7",
"vite": "^5.4.11",
"vite-plugin-wasm": "^3.3.0",
"vite-tsconfig-paths": "^5.1.2",
Expand Down
7 changes: 7 additions & 0 deletions client-vms/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"entryPoints": ["./src/index.ts"],
"out": "docs",
"excludePrivate": true,
"excludeProtected": true,
"theme": "default"
}
116 changes: 116 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 152acca

Please sign in to comment.