mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-22 12:31:17 +00:00
The generated hand-edited d.mts declared pruneOrphanLocaleDocs twice with resolveClawHubRepoPath between them, tripping the adjacent-overload-signatures lint on every PR. Keep the documented declaration.
28 lines
767 B
TypeScript
28 lines
767 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;
|
|
/** Removes locale pages whose canonical source page no longer exists. */
|
|
export function pruneOrphanLocaleDocs(targetDocsDir: string): void;
|
|
/**
|
|
* 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;
|
|
};
|