Skip to content

Commit 2e223e5

Browse files
authored
Merge pull request #1 from QoderAI/1789716378-ts-sdk-docs-ci-pilot
docs: deterministic API reference + docs-check CI gate (Phase A)
2 parents 34edea9 + d91be1a commit 2e223e5

1,271 files changed

Lines changed: 48426 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,15 @@ jobs:
2727
- run: npm run typecheck
2828
- run: npm test
2929
- run: npm pack --dry-run
30+
31+
docs-check:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v7
35+
- uses: actions/setup-node@v7
36+
with:
37+
node-version: '22.x'
38+
cache: npm
39+
- run: npm ci
40+
- run: npm run build
41+
- run: npm run docs:check

‎Makefile‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
LIVE_ENV_FILE ?= .env.live
22
.DEFAULT_GOAL := test
33

4-
.PHONY: build test test-unit test-contract test-scenarios test-live test-live-managed test-live-all test-live-check test-e2e
4+
.PHONY: build test test-unit test-contract test-scenarios test-live test-live-managed test-live-all test-live-check test-e2e docs docs-check
55

66
build:
77
npm run build
88

9+
docs:
10+
npm run docs
11+
12+
docs-check:
13+
npm run docs:check
14+
915
test:
1016
npm test
1117

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ Neither hook is applied to file downloads, which deliberately bypass the client
340340

341341
Node.js 20.12 or later. The SDK relies only on the platform's `fetch`, `Request`, `Response`, `Headers`, `AbortController`, `Blob` and `File` — any runtime providing those, and a `fetch` you can inject if not, should work. Deno, Bun, Cloudflare Workers and Vercel Edge are not part of the test matrix.
342342

343+
## Documentation
344+
345+
The API reference under `docs/api/` is generated from the source. Regenerate it with `make docs` (or `npm run docs`). To verify the committed reference is up to date and the README snippets still compile, run `make docs-check` (or `npm run docs:check`); CI runs the same gate on every pull request.
346+
343347
## License
344348

345349
Released under the [MIT License](LICENSE).

‎docs/api/README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
**qca-sdk**
2+
3+
***
4+
5+
# qca-sdk
6+
7+
## Modules
8+
9+
- [index](index/README.md)
10+
- [forward](forward/README.md)
11+
- [managed](managed/README.md)
12+
13+
## Related
14+
15+
- [README](../../README.md)
16+
- [Examples](../../examples)

0 commit comments

Comments
 (0)