Skip to content

Add TypeDoc API reference documentation - #21

Open
151henry151 wants to merge 2 commits into
bitcoindevkit:masterfrom
151henry151:issue-6-api-docs
Open

Add TypeDoc API reference documentation#21
151henry151 wants to merge 2 commits into
bitcoindevkit:masterfrom
151henry151:issue-6-api-docs

Conversation

@151henry151

Copy link
Copy Markdown

Issue #6 asked for API documentation tooling and workflow for the React Native bindings. The project had Zensical guide docs but no browsable API reference; integrators were pointed at example apps to discover the API.

This adds TypeDoc generation from the UniFFI-produced TypeScript bindings (with JSDoc propagated from bdk-ffi Rust doc comments), integrates the output at /api/ on the existing GitHub Pages site, and adds just api-docs / just docs-build with a CI workflow to build and deploy on push to master.

The TypeDoc landing page lives in typedoc-readme.md at the repo root (outside docs/) so Zensical does not emit an orphan /api-index/ page. The docs CI workflow uses pnpm 10.27.0 with a SHA-pinned pnpm/action-setup action, matching packageManager in package.json. It also runs on pull requests (build only; deploy is gated to push on master). Main CI still uses yarn; fixing that is a separate follow-up.

Closes #6

Tested with:
just docs-build — passed
All local verification checks (site output, Wallet JSDoc, orphan page absent, typedoc-readme content in API index) — passed

Generate browsable API docs from ubrn-produced TypeScript bindings,
integrate at /api/ on the Zensical site, and add just api-docs /
just docs-build recipes with pnpm-based CI deployment.
Generated bindings do not exist on a fresh checkout, so pnpm install
must use --ignore-scripts until after ubrn:android runs.
@151henry151

Copy link
Copy Markdown
Author

The Docs workflow failed because pnpm install triggered prepare (bob build) before ubrn:android had created src/generated/ — the same chicken-and-egg the repo already avoids locally with --ignore-scripts. Fixed by adding --ignore-scripts to the install step in docs.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build API docs

1 participant