Files
openclaw/scripts/docs-sync-publish.d.mts

28 lines
792 B
TypeScript

#!/usr/bin/env node
export function parseArgs(argv: unknown): {
target: string;
sourceRepo: string;
sourceSha: string;
clawhubRepo: string;
clawhubSourceRepo: string;
clawhubSourceSha: string;
};
/**
* Resolves the local ClawHub repository path used for docs mirroring.
*/
export function resolveClawHubRepoPath(value?: string, options?: Record<string, unknown>): string;
/** Reports locale pages whose canonical source page no longer exists without deleting them. */
export function reportOrphanLocaleDocs(targetDocsDir: string): number;
/**
* Mirrors ClawHub docs into the target docs tree.
*/
export function syncClawHubDocsTree(
targetDocsDir: unknown,
options?: Record<string, unknown>,
): {
repository: unknown;
sha: unknown;
path: string;
files: number;
};