Generate component documentation from the given paths.
import { cmdDocgen } from '@zendeskgarden/scripts';
const args: {
paths: string[] | string;
extensions?: string[];
ignore?: string[];
} = {
paths: __dirname
/* optional overrides */
};
(async () => {
const result = await cmdDocgen(args);
console.log(JSON.stringify(result, undefined, 2));
})();
paths
one or more component path globs.extensions
file extensions to consider (default: ["js","jsx","ts","tsx"]).ignore
paths to ignore (default: ["/.spec.","/dist/","/node_modules/**"]).
garden cmd-docgen \
[--extensions <extensions>] \
[--ignore <ignore>] \
[--pretty] \
<paths>