omnidoc/README.md
This folder contains tools for managing and maintaining documentation consistency across the Recharts project.
omnidoc.spec.ts)Automated tests that verify documentation is synchronized across:
www/src/docs/apiRun with:
npm run test-omnidoc
generateApiDoc.ts)Auto-generates API documentation files from TypeScript source code. This tool:
www/src/docs/api folderen-US descriptions (from TypeScript docs)Generate documentation for specific components:
npm run omnidoc [component1] [component2] ...
Generate documentation for all allowlisted components:
npm run omnidoc
Examples:
npm run omnidoc
npm run omnidoc CartesianGrid
npm run omnidoc XAxis YAxis ZAxis
After generating API documentation:
www/src/docs/api/index.ts to import and export the new API docsnpm run test-omnidoc to verify consistencywww/src/docs/apiExampleswww/src/docs/apiCates.tsreadProject.ts): Reads documentation from TypeScript source code using ts-morphreadApiDoc.ts): Reads documentation from the website's API docsreadStorybookDoc.ts): Reads documentation from Storybook storiesAll readers implement the DocReader interface defined in DocReader.ts.