mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
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
17 lines
562 B
TypeScript
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');
|
|
}
|