Skip to content

docs: comprehensive doc review — SDK, API reference, URLs, and navigation#153

Merged
Leechael merged 18 commits intomainfrom
feat/webhooks-docs
Mar 27, 2026
Merged

docs: comprehensive doc review — SDK, API reference, URLs, and navigation#153
Leechael merged 18 commits intomainfrom
feat/webhooks-docs

Conversation

@Leechael
Copy link
Copy Markdown
Contributor

@Leechael Leechael commented Mar 23, 2026

Summary

  • OpenAPI integration: Add Mintlify OpenAPI support — 152 endpoints auto-rendered as interactive API pages, replacing external Swagger UI
  • URL consistency: Fix all cloud-api.phala.networkcloud-api.phala.com, ra-quote-explorer.vercel.appproof.t16z.com, phala-cloud-communityphala-cloud, t.me/phaborhood → correct TG link
  • SDK improvements: Standardize phak_ API key format, add CVM restart warnings, document UpdateXxxx vs PatchCVM, remove deprecated fields from Go SDK, mark Python/Go/Terraform as beta
  • Navigation: Remove 3rd/4th level icons, move on-chain KMS guide to Key Management, reorder Go SDK pages
  • Content: Simplify api-deployment-guide to overview, replace all Swagger links with internal references
  • Webhooks: Add webhooks reference page with signature verification examples

Test plan

  • mintlify dev renders OpenAPI pages without 404s
  • Sidebar navigation shows correct grouping and order
  • All internal links resolve correctly
  • API key examples consistently show phak_ prefix

Covers supported events, payload format, HMAC signature verification
(Python/Node.js), delivery behavior, API endpoints, and best practices.
Split flat Options table into Options / Advanced Options / Deprecated Options /
Global Options per command. Updated generate-cli-docs.js parser to recognize
option groups. Added new command pages: allow-devices, auth, envs, kms,
os-images, phala-toml.
…pdates

New content:
- Python SDK reference (10 pages)
- Go SDK reference (11 pages)
- Terraform provider reference (7 pages)
- Flow guides: deploy-first-cvm, multi-replica-scaling, gpu-tee-deployment,
  attestation verification
- API deployment guide (migrated from sdks/docs)
- OpenAPI spec export (173 endpoints)
- Enhanced: JS SDK pages, env vars guide, CI/CD pipeline guide
- Merge small groups into parent sections (Storage/Code Updates → CVM)
- Merge related groups (Trust Center + Attestation, Monitoring + Troubleshooting)
- Rename References → API & SDK (pure API/SDK content only)
- Add CLI command grouping (Deploy/Manage/CVM Ops/Profile & Auth/Advanced/Deprecated)
- Move webhooks to API & SDK, migration guide to Getting Started
- Move performance-report and production-checklist to Observability
- All 193 nav entries verified against .mdx files
Phase 1 (Structure):
- Fix title mismatch in cvm/overview.mdx ("Create CVM" → "CVM Overview")
- Fix broken links in trust-center-verification.mdx
- Add intro text to stub pages (security-architecture, core-concepts-refresher)
- Fix API overview title and beta warning
- Fix dstack/overview.mdx typos and structural issues
- Fix FAQs: remove emoji headings, format bare URLs, fix outdated answers

Phase 2 (Copy):
- Fix passive voice and vague language across 16 files
- Remove AI slop ("seamless integration", "Neocloud solution", "comprehensive")
- Fix grammar errors ("is pass" → "is passing", "forget to attached")
- Tighten descriptions and add missing Next Steps sections

Phase 3 (Consistency):
- Standardize "Dstack"/"DStack" → "dstack" in prose across 22 files
- Standardize "TEE Proof Explorer" → "TEE Attestation Explorer" in 5 files
- Fix docs.json navigation header/tab casing
- Add .doc-review/state.yml for tracking doc health
Add /phala-cloud/phala-cloud-cli/ci-cd-automation/setup-a-ci-cd-pipeline
and /phala-cloud/references/overview to docs.json navigation so redirect
destinations are discoverable.
Add buffer length check before crypto.timingSafeEqual to prevent
RangeError when signature has unexpected length.
- TEE Attestation Explorer: ra-quote-explorer.vercel.app → proof.t16z.com
- GitHub: phala-cloud-community/Leechael/phala-cloud-api-example → Phala-Network/phala-cloud
- Telegram: t.me/phaborhood → t.me/+nbhjx1ADG9EyYmI9
- Add Mintlify OpenAPI integration (openapi.json → interactive API pages)
- Remove x-mint.href extensions that caused 404s
- Replace cloud-api.phala.network → cloud-api.phala.com everywhere
- Replace Swagger links with internal API reference pages
- Standardize API key placeholder to phak_your_api_key across all SDKs
- Remove deprecated GatewayEnabled/Name from Go SDK compose examples
- Add CVM restart warning to all SDK cvm-configuration pages
- Document UpdateXxxx vs PatchCVM relationship across Go/Python/JS SDKs
- Move Watch CVM State after CVM Configuration in Go SDK nav
- Move on-chain KMS guide from JS SDK to Key Management section
- Mark Python SDK, Go SDK, and Terraform Provider as beta
- Simplify api-deployment-guide to overview (remove outdated code)
- Remove icons from 3rd/4th level nav groups
@Leechael Leechael changed the title docs: add webhooks reference page docs: comprehensive doc review — SDK, API reference, URLs, and navigation Mar 25, 2026
CLI deploy.mdx:
- Add --prepare-only, --commit, --token, --compose-hash, --transaction-hash options
- Add Multisig Update Flow section with examples

Key Management cloud-vs-onchain-kms.mdx:
- Add "Updating CVMs with Onchain KMS" section
- Standard flow (single owner) and multisig flow (two-phase)
- Webhook notification integration mention
on-chain-kms-guide.mdx:
- Lead with CLI workflows (deploy, update, multisig two-phase)
- Add prepare-only output example with on-chain status
- Add webhook notification mention
- SDK sections moved below CLI as programmatic alternative
- Device management condensed

cloud-vs-onchain-kms.mdx:
- Slim down Updating CVMs section to brief + link
…fication examples

Document reveal-secret/rotate-secret endpoints with 2FA requirements,
add SSRF-prevention URL restrictions, and promote SDK-based signature
verification over inline code examples.
- webhooks.mdx: add Python SDK example alongside JS and Go
- JS SDK overview: add Webhook Signature Verification section with @phala/cloud/webhook import
- Python SDK overview: add verify_webhook_signature/parse_webhook_event to utility table with example
- Go SDK overview: add VerifyWebhookSignature/ParseWebhookEvent table with example
- All SDK pages: add Webhooks link to Related section
- webhooks: convert best practices to unordered list, remove redundant HTTPS item,
  surface replay protection from accordion to main SDK section
- provision-cvm: complete on-chain KMS example with full 3-step flow
  (provision → deployAppAuth → commitCvmProvision)
- commit-cvm-provision: add return type field table, add post-commit
  behavior guidance (watchCvmState / webhook events)
@Leechael Leechael merged commit d651a0a into main Mar 27, 2026
4 checks passed
@Leechael Leechael deleted the feat/webhooks-docs branch March 27, 2026 09:06
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.

1 participant