Files
zeekay f8cde1decb feat(zt-docs): add Hanzo Zero Trust documentation site
Complete documentation app for the Hanzo ZT SDK suite at zerotrust.hanzo.ai:
- Landing page with hero, feature cards, SDK grid, and architecture diagram
- Overview: design principles, components, SDK comparison matrix
- Getting Started: multi-language install, auth setup, connect examples
- Architecture: network topology, transport stack, auth flow, billing, ZAP framing
- Integration: ZAP transport, MCP, dev CLI, gateway, tunnel
- SDK docs for all 6 languages: Rust (436L), Go (902L), TypeScript (908L),
  Python (606L), C++ (587L), C (655L)
- Static export builds to 16 pages, runs on port 3004
2026-02-22 14:56:02 -08:00

17 lines
562 B
TypeScript

// Pre-build script for ZT docs
// Generates MDX collection files via workspace dependency
import { execSync } from 'child_process';
console.log('Running pre-build...');
try {
// Generate MDX collections using the workspace-linked CLI
execSync('pnpm exec docs-mdx', { stdio: 'inherit' });
console.log('Pre-build complete');
} catch (error) {
// docs-mdx may not be available as CLI in all environments;
// fall through gracefully since next build can still succeed
console.warn('Pre-build warning: docs-mdx not found, skipping MDX generation');
}